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('addDB_code', $key); return $this->getEntity(); } public function getEntitiesByCode(string $key): array { $this->getModel()->where('addDB_code', $key); return $this->getEntities(); } }