PHP Class Gitlab\Model\Branch

Inheritance: extends Gitlab\Model\AbstractModel
Mostrar archivo Open project: m4tthumphrey/php-gitlab-api Class Usage Examples

Protected Properties

Property Type Description
$properties array

Public Methods

Method Description
__construct ( Project $project, string $name = null, Gitlab\Client $client = null )
commits ( integer $page = 1, integer $per_page = Api::PER_PAGE ) : Gitlab\Model\Commit[]
createFile ( string $file_path, string $content, string $commit_message ) : Gitlab\Model\File
delete ( ) : boolean
deleteFile ( string $file_path, string $commit_message ) : boolean
fromArray ( Gitlab\Client $client, Project $project, array $data ) : Branch
protect ( boolean $devPush = false, boolean $devMerge = false ) : Branch
show ( ) : Branch
unprotect ( ) : Branch
updateFile ( string $file_path, string $content, string $commit_message ) : Gitlab\Model\File

Method Details

__construct() public method

public __construct ( Project $project, string $name = null, Gitlab\Client $client = null )
$project Project
$name string
$client Gitlab\Client

commits() public method

public commits ( integer $page = 1, integer $per_page = Api::PER_PAGE ) : Gitlab\Model\Commit[]
$page integer
$per_page integer
return Gitlab\Model\Commit[]

createFile() public method

public createFile ( string $file_path, string $content, string $commit_message ) : Gitlab\Model\File
$file_path string
$content string
$commit_message string
return Gitlab\Model\File

delete() public method

public delete ( ) : boolean
return boolean

deleteFile() public method

public deleteFile ( string $file_path, string $commit_message ) : boolean
$file_path string
$commit_message string
return boolean

fromArray() public static method

public static fromArray ( Gitlab\Client $client, Project $project, array $data ) : Branch
$client Gitlab\Client
$project Project
$data array
return Branch

protect() public method

public protect ( boolean $devPush = false, boolean $devMerge = false ) : Branch
$devPush boolean
$devMerge boolean
return Branch

show() public method

public show ( ) : Branch
return Branch

unprotect() public method

public unprotect ( ) : Branch
return Branch

updateFile() public method

public updateFile ( string $file_path, string $content, string $commit_message ) : Gitlab\Model\File
$file_path string
$content string
$commit_message string
return Gitlab\Model\File

Property Details

$properties protected_oe static_oe property

protected static array $properties
return array