getRepository() публичный Метод

Returns the repository if it is registered in the map, throws exception otherwise
public getRepository ( string $key ) : TQ\Vcs\Repository\RepositoryInterface
$key string The key
Результат TQ\Vcs\Repository\RepositoryInterface
 /**
  * Returns the repository for the given path information
  *
  * @param   array       $pathInfo       An array containing information about the path
  * @return  RepositoryInterface
  */
 protected function getRepository(array $pathInfo)
 {
     if ($pathInfo['host'] === PathInformationInterface::GLOBAL_PATH_HOST) {
         return $this->createRepositoryForPath($pathInfo['path']);
     } else {
         return $this->map->getRepository($pathInfo['host']);
     }
 }
 /**
  * @expectedException           \OutOfBoundsException
  * @expectedExceptionMessage    a does not exist in the registry
  */
 public function testGetNonExistentRepositoryThrowsException()
 {
     $registry = new RepositoryRegistry();
     $registry->getRepository('a');
 }