PHP 클래스 Gitlab\Model\Branch

상속: extends Gitlab\Model\AbstractModel
파일 보기 프로젝트 열기: m4tthumphrey/php-gitlab-api 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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