class GitRepository extends AbstractObject implements IdAble

A git repository.

Properties

$lastQuery from  AbstractObject

Methods

__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

null|array|string|int|float|bool
queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

branch(string $name)

Returns details of a branch.

commit(string $id)

Returns details of a commit.

head()

Returns details for HEAD.

id()

A unique identifier for this GitRepository.

ref(string $name)

Returns details of a ref.

tag(string $name)

Returns details of a tag.

array
tags(array|null $patterns = null)

tags that match any of the given glob patterns.

withAuthHeader(Secret $header)

Header to authenticate the remote with.

withAuthToken(Secret $token)

Token to authenticate the remote with.

Details

in AbstractObject at line 13
__construct(AbstractClient $client, QueryBuilderChain $queryBuilderChain)

No description

Parameters

AbstractClient $client
QueryBuilderChain $queryBuilderChain

in AbstractObject at line 19
protected null|array|string|int|float|bool queryLeaf(QueryBuilder $leafQueryBuilder, string $leafKey)

No description

Parameters

QueryBuilder $leafQueryBuilder
string $leafKey

Return Value

null|array|string|int|float|bool

at line 19
GitRef branch(string $name)

Returns details of a branch.

Parameters

string $name

Return Value

GitRef

at line 29
GitRef commit(string $id)

Returns details of a commit.

Parameters

string $id

Return Value

GitRef

at line 39
GitRef head()

Returns details for HEAD.

Return Value

GitRef

at line 48
AbstractId id()

A unique identifier for this GitRepository.

Return Value

AbstractId

at line 57
GitRef ref(string $name)

Returns details of a ref.

Parameters

string $name

Return Value

GitRef

at line 67
GitRef tag(string $name)

Returns details of a tag.

Parameters

string $name

Return Value

GitRef

at line 77
array tags(array|null $patterns = null)

tags that match any of the given glob patterns.

Parameters

array|null $patterns

Return Value

array

at line 89
GitRepository withAuthHeader(Secret $header)

Header to authenticate the remote with.

Parameters

Secret $header

Return Value

GitRepository

at line 99
GitRepository withAuthToken(Secret $token)

Token to authenticate the remote with.

Parameters

Secret $token

Return Value

GitRepository