Nextras\Orm\Repository\IRepository::getEntityClassNames PHP Метод

getEntityClassNames() публичный статический Метод

Returns possible entity class names for current repository.
public static getEntityClassNames ( ) : string[]
Результат string[]
    public static function getEntityClassNames();

Usage Example

Пример #1
0
 public function check(IEntity $entity)
 {
     if (!in_array(get_class($entity), $this->repository->getEntityClassNames(), true)) {
         throw new InvalidArgumentException("Entity '" . get_class($entity) . "' is not accepted by '" . get_class($this->repository) . "' repository.");
     }
 }