Property | Type | Description | |
---|---|---|---|
$map | array | The repository map |
Method | Description | |
---|---|---|
addRepositories ( array $repositories ) : |
Adds multiple repositories | |
addRepository ( string $key, TQ\Vcs\Repository\RepositoryInterface $repository ) : |
Adds a single repository | |
count ( ) : integer | Count elements of an object | |
getRepository ( string $key ) : TQ\Vcs\Repository\RepositoryInterface | Returns the repository if it is registered in the map, throws exception otherwise | |
hasRepository ( string $key ) : boolean | Returns true if the repository is registered in the map | |
tryGetRepository ( string $key ) : TQ\Vcs\Repository\RepositoryInterface | null | Returns the repository if it is registered in the map, NULL otherwise |
public addRepositories ( array $repositories ) : |
||
$repositories | array | The repositories (key => repository) |
return |
public addRepository ( string $key, TQ\Vcs\Repository\RepositoryInterface $repository ) : |
||
$key | string | The key |
$repository | TQ\Vcs\Repository\RepositoryInterface | The repository |
return |
public getRepository ( string $key ) : TQ\Vcs\Repository\RepositoryInterface | ||
$key | string | The key |
return | TQ\Vcs\Repository\RepositoryInterface |
public hasRepository ( string $key ) : boolean | ||
$key | string | The key |
return | boolean |
public tryGetRepository ( string $key ) : TQ\Vcs\Repository\RepositoryInterface | null | ||
$key | string | The key |
return | TQ\Vcs\Repository\RepositoryInterface | null |