tryGetRepository() 공개 메소드

Returns the repository if it is registered in the map, NULL otherwise
public tryGetRepository ( string $key ) : TQ\Vcs\Repository\RepositoryInterface | null
$key string The key
리턴 TQ\Vcs\Repository\RepositoryInterface | null
 public function testTryGetNonExistentRepositoryReturnsNull()
 {
     $registry = new RepositoryRegistry();
     $this->assertNull($registry->tryGetRepository('a'));
 }