getEntityClassNames() public static méthode

Returns possible entity class names for current repository.
public static getEntityClassNames ( ) : string[]
Résultat string[]
Exemple #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.");
     }
 }