getClassName(); } public function getModelClass(): string { return Model::class; } public function getEntityClass(): string { return Entity::class; } public function getEntitById(string $id): Entity { $this->getModel()->where($this->getModel()->getPKField(), $id); return $this->getEntity(); } }