src/Orm.php
public function getRepositoryFor($entityClass)
    {
        if (!is_subclass_of($entityClass, EntityInterface::class)) {
            throw new InvalidArgumentException(
                'Cannot create ORM repository for a class that does not '.
                'implement EntityInterface.'
            );
        }

        return $this->repositories->containsKey($entityClass)
            ? $this->repositories->get($entityClass)
            : $this->createRepository($entityClass);
    }
public function getRepositoryFor($entityClass)
    {
        if (!is_subclass_of($entityClass, EntityInterface::class)) {
            throw new InvalidArgumentException(
                'Cannot create ORM repository for a class that does not '.
                'implement EntityInterface.'
            );
        }

        return $this->repositories->containsKey($entityClass)
            ? $this->repositories->get($entityClass)
            : $this->createRepository($entityClass);
    }
public function getRepositoryFor ( $ entityClass ) { if ( ! is_subclass_of ( $ entityClass , EntityInterface :: class ) ) { throw new InvalidArgumentException ( 'Cannot create ORM repository for a class that does not ' . 'implement EntityInterface.' ) ; } return $ this -> repositories -> containsKey ( $ entityClass ) ? $ this -> repositories -> get ( $ entityClass ) : $ this -> createRepository ( $ entityClass ) ; }
Gets repository for provided entity class name

@param string $entityClass FQ entity class name

@return EntityRepository

@throws InvalidArgumentException If provide class name is not
from a class that implements the EntityInterface interface.
Gets repository for provided entity class name