PHP Class Gitamin\Services\Git\Client

Inheritance: extends Gitter\Client
Mostra file Open project: gitaminhq/gitamin

Protected Properties

Property Type Description
$defaultBranch
$hidden
$projects

Public Methods

Method Description
__construct ( $options = null )
createRepository ( $path, $bare = null ) Overloads the parent::createRepository method for the correct Repository class instance.
getDefaultBranch ( ) Return name of default branch as a string.
getRepository ( $path ) Overloads the parent::getRepository method for the correct Repository class instance.

Protected Methods

Method Description
getHidden ( ) : array Get hidden repository list.
getProjects ( ) : array Get project list.
setDefaultBranch ( string $branch ) : object Set default branch as a string.
setHidden ( array $hidden ) : object Set the hidden repository list.
setProjects ( array $projects ) Set the shown repository list.

Method Details

__construct() public method

public __construct ( $options = null )

createRepository() public method

public createRepository ( $path, $bare = null )

getDefaultBranch() public method

Return name of default branch as a string.
public getDefaultBranch ( )

getHidden() protected method

Get hidden repository list.
protected getHidden ( ) : array
return array List of repositories to hide

getProjects() protected method

Get project list.
protected getProjects ( ) : array
return array List of repositories to show

getRepository() public method

public getRepository ( $path )

setDefaultBranch() protected method

Set default branch as a string.
protected setDefaultBranch ( string $branch ) : object
$branch string Name of branch to use when repo's HEAD is detached.
return object

setHidden() protected method

Set the hidden repository list.
protected setHidden ( array $hidden ) : object
$hidden array List of repositories to hide
return object

setProjects() protected method

Set the shown repository list.
protected setProjects ( array $projects )
$projects array List of repositories to show

Property Details

$defaultBranch protected_oe property

protected $defaultBranch

$hidden protected_oe property

protected $hidden

$projects protected_oe property

protected $projects