PHP Класс Gitlab\Model\Branch

Наследование: extends Gitlab\Model\AbstractModel
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$properties array

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный Метод

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

commits() публичный Метод

public commits ( integer $page = 1, integer $per_page = Api::PER_PAGE ) : Gitlab\Model\Commit[]
$page integer
$per_page integer
Результат Gitlab\Model\Commit[]

createFile() публичный Метод

public createFile ( string $file_path, string $content, string $commit_message ) : Gitlab\Model\File
$file_path string
$content string
$commit_message string
Результат Gitlab\Model\File

delete() публичный Метод

public delete ( ) : boolean
Результат boolean

deleteFile() публичный Метод

public deleteFile ( string $file_path, string $commit_message ) : boolean
$file_path string
$commit_message string
Результат boolean

fromArray() публичный статический Метод

public static fromArray ( Gitlab\Client $client, Project $project, array $data ) : Branch
$client Gitlab\Client
$project Project
$data array
Результат Branch

protect() публичный Метод

public protect ( boolean $devPush = false, boolean $devMerge = false ) : Branch
$devPush boolean
$devMerge boolean
Результат Branch

show() публичный Метод

public show ( ) : Branch
Результат Branch

unprotect() публичный Метод

public unprotect ( ) : Branch
Результат Branch

updateFile() публичный Метод

public updateFile ( string $file_path, string $content, string $commit_message ) : Gitlab\Model\File
$file_path string
$content string
$commit_message string
Результат Gitlab\Model\File

Описание свойств

$properties защищенное статическое свойство

protected static array $properties
Результат array