getClassName(); } protected function getModel(): Model { if ($this->_model === null) { $this->_model = new Model(); // $this->_model->setDebug(true); } return $this->_model; } public function getEntitByCode(string $code): Entity|null|false { $this->getModel()->where("Client_Code", $code); return $this->getModel()->getEntity(); } }