getClassName(); } public function getModel(): VPCModel { if ($this->_model === null) { $this->_model = new VPCModel(); // $this->_model->setDebug(true); } return $this->_model; } public function getCountByServiceCode(string $service_code): int { $this->getModel()->where("service_code", $service_code); $count = $this->getModel()->countAllResults(); // echo "
" . $this->getModel()->getLastQuery(); return $count; } }