PHP Class Gitlab\Model\Branch

Inheritance: extends Gitlab\Model\AbstractModel
Afficher le fichier Open project: m4tthumphrey/php-gitlab-api Class Usage Examples

Protected Properties

Свойство Type Description
$properties array

Méthodes publiques

Méthode 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 méthode

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

commits() public méthode

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

createFile() public méthode

public createFile ( string $file_path, string $content, string $commit_message ) : Gitlab\Model\File
$file_path string
$content string
$commit_message string
Résultat Gitlab\Model\File

delete() public méthode

public delete ( ) : boolean
Résultat boolean

deleteFile() public méthode

public deleteFile ( string $file_path, string $commit_message ) : boolean
$file_path string
$commit_message string
Résultat boolean

fromArray() public static méthode

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

protect() public méthode

public protect ( boolean $devPush = false, boolean $devMerge = false ) : Branch
$devPush boolean
$devMerge boolean
Résultat Branch

show() public méthode

public show ( ) : Branch
Résultat Branch

unprotect() public méthode

public unprotect ( ) : Branch
Résultat Branch

updateFile() public méthode

public updateFile ( string $file_path, string $content, string $commit_message ) : Gitlab\Model\File
$file_path string
$content string
$commit_message string
Résultat Gitlab\Model\File

Property Details

$properties protected_oe static_oe property

protected static array $properties
Résultat array