Свойство | Тип | Описание | |
---|---|---|---|
$author | string | null | The author | |
$commitHash | string | null | The commit hash | |
$commitMsg | string | null | The commit message | |
$repository | TQ\Vcs\Repository\RepositoryInterface | The VCS repository | |
$result | mixed | The return value of the transactional callback |
Метод | Описание | |
---|---|---|
__construct ( TQ\Vcs\Repository\RepositoryInterface $repository ) | Creates a new transactional parameter | |
getAuthor ( ) : string | null | Returns the author that will be used when committing the transaction | |
getCommitHash ( ) : string | null | Returns the hash identifying the commit | |
getCommitMsg ( ) : string | null | Returns the commit message that will be used when committing the transaction | |
getRepository ( ) : TQ\Vcs\Repository\RepositoryInterface | Returns the VCS repository | |
getRepositoryPath ( ) : string | Returns the full file system path to the VCS repository | |
getResult ( ) : mixed | Returns the return value of the closure executed in the transactional scope | |
resolvePath ( string $path ) : string | Resolves a path relative to the repository into an absolute path | |
setAuthor ( string | null $author ) : |
Sets the author that will be used when committing the transaction | |
setCommitHash ( string $commitHash ) : |
Sets the hash identifying the commit | |
setCommitMsg ( string | null $commitMsg ) : |
Sets the commit message that will be used when committing the transaction | |
setResult ( mixed $result ) : |
Sets the return value of the closure executed in the transactional scope |
public __construct ( TQ\Vcs\Repository\RepositoryInterface $repository ) | ||
$repository | TQ\Vcs\Repository\RepositoryInterface | The VCS repository |
public getCommitHash ( ) : string | null | ||
Результат | string | null |
public getCommitMsg ( ) : string | null | ||
Результат | string | null |
public getRepository ( ) : TQ\Vcs\Repository\RepositoryInterface | ||
Результат | TQ\Vcs\Repository\RepositoryInterface |
public getRepositoryPath ( ) : string | ||
Результат | string |
public resolvePath ( string $path ) : string | ||
$path | string | The relative path to convert to an absolute path |
Результат | string |
public setCommitHash ( string $commitHash ) : |
||
$commitHash | string | The commit hash |
Результат |
public setCommitMsg ( string | null $commitMsg ) : |
||
$commitMsg | string | null | The commit message |
Результат |
protected RepositoryInterface,TQ\Vcs\Repository $repository | ||
Результат | TQ\Vcs\Repository\RepositoryInterface |
protected mixed $result | ||
Результат | mixed |