getClassName(); } public function getModelClass(): string { return Model::class; } public function getEntityClass(): string { return Entity::class; } public function getEntityByCode(string $key): Entity|null|false { $this->getModel()->where(Model::PKField, $key); return $this->getEntity(); } }