public function get($name)
    {
        /** @var Repository $repository */
        foreach ($this->repositories as $repository) {
            if ($repository->getName() == $name) {
                return $repository;
            }
        }

        return null;
    }
public function get($name)
    {
        /** @var Repository $repository */
        foreach ($this->repositories as $repository) {
            if ($repository->getName() == $name) {
                return $repository;
            }
        }

        return null;
    }
public function get ( $ name ) { /** @var Repository $repository */ foreach ( $ this -> repositories as $ repository ) { if ( $ repository -> getName ( ) == $ name ) { return $ repository ; } } return null ; }
Retrieve a repository by its name

@param string $name the repository name

@return Repository $repository
Retrieve a repository by its name