src/PipelinerSales/ApiClient/PipelinerClient.php
public function getRepository($entityName)
    {
        if ($entityName instanceof Entity) {
            $entityName = $entityName->getType();
        }

        if (!isset($this->repositories[$entityName])) {
            $plural = $this->getCollectionName($entityName);
            $this->repositories[$entityName] = $this->repositoryFactory->createRepository(
                $entityName,
                $plural
            );
        }

        return $this->repositories[$entityName];
    }
public function getRepository($entityName)
    {
        if ($entityName instanceof Entity) {
            $entityName = $entityName->getType();
        }

        if (!isset($this->repositories[$entityName])) {
            $plural = $this->getCollectionName($entityName);
            $this->repositories[$entityName] = $this->repositoryFactory->createRepository(
                $entityName,
                $plural
            );
        }

        return $this->repositories[$entityName];
    }
public function getRepository ( $ entityName ) { if ( $ entityName instanceof Entity ) { $ entityName = $ entityName -> getType ( ) ; } if ( ! isset ( $ this -> repositories [ $ entityName ] ) ) { $ plural = $ this -> getCollectionName ( $ entityName ) ; $ this -> repositories [ $ entityName ] = $ this -> repositoryFactory -> createRepository ( $ entityName , $ plural ) ; } return $ this -> repositories [ $ entityName ] ; }
Returns a repository for the specified entity.

@param mixed $entityName an {@see Entity} object or entity name,
can be both singular (Account) and plural (Accounts)
@return RepositoryInterface
Returns a repository for the specified entity .