PHP Класс REBELinBLUE\Deployer\Deployment

Наследование: extends Illuminate\Database\Eloquent\Model, implements Robbo\Presenter\PresentableInterface, implements REBELinBLUE\Deployer\Contracts\RuntimeInterface, use trait Illuminate\Database\Eloquent\SoftDeletes
Показать файл Открыть проект Примеры использования класса

Открытые свойства

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

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

Свойство Тип Описание
$appends array Additional attributes to include in the JSON representation.
$casts array The attributes that should be casted to native types.
$dates array The fields which should be tried as Carbon instances.
$fillable array The attributes that are mass assignable.
$hidden array The attributes excluded from the model's JSON form.

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

Метод Описание
boot ( ) Override the boot method to bind model event listeners.
getBranchURLAttribute ( ) : string | false Gets the HTTP URL to the branch.
getCommandsAttribute ( ) : Collection Define a command attribute to be able to access to commands relationship.
getCommitUrlAttribute ( ) : string | false Gets the HTTP URL to the commit.
getDeployerNameAttribute ( ) : string Define a accessor for the deployer name.
getPresenter ( ) : DeploymentPresenter Gets the view presenter.
getProjectNameAttribute ( ) : string Define a accessor for the project name.
getReleaseIdAttribute ( ) : string Mutator to get the release ID.
getRepoFailureAttribute ( ) : boolean Checks whether the repository failed to load.
getShortCommitAttribute ( ) : string Gets the short commit hash.
isAborted ( ) : boolean Determines whether the deployment is aborted.
isAborting ( ) : boolean Determines whether the deployment is waiting to be aborted.
isCurrent ( ) : boolean Determines if the deployment is the latest deployment.
isFailed ( ) : boolean Determines whether the deployment failed.
isPending ( ) : boolean Determines whether the deployment is pending.
isRunning ( ) : boolean Determines whether the deployment is running.
isSuccessful ( ) : boolean Determines whether the deployment is successful.
notificationPayload ( ) : array Generates a slack payload for the deployment.
project ( ) : BelongsTo Belongs to relationship.
runtime ( ) : false | integer Determines how long the deploy took.
steps ( ) : Illuminate\Database\Eloquent\Relations\HasMany Has many relationship.
user ( ) : BelongsTo Belongs to relationship.

Приватные методы

Метод Описание
loadCommands ( ) Query the DB and load the HasMany relationship for commands.

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

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

Override the boot method to bind model event listeners.
public static boot ( )

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

Gets the HTTP URL to the branch.
См. также: Project::accessDetails()
public getBranchURLAttribute ( ) : string | false
Результат string | false

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

Define a command attribute to be able to access to commands relationship.
public getCommandsAttribute ( ) : Collection
Результат Illuminate\Support\Collection

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

Gets the HTTP URL to the commit.
public getCommitUrlAttribute ( ) : string | false
Результат string | false

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

Define a accessor for the deployer name.
public getDeployerNameAttribute ( ) : string
Результат string

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

Gets the view presenter.
public getPresenter ( ) : DeploymentPresenter
Результат REBELinBLUE\Deployer\Presenters\DeploymentPresenter

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

Define a accessor for the project name.
public getProjectNameAttribute ( ) : string
Результат string

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

Mutator to get the release ID.
public getReleaseIdAttribute ( ) : string
Результат string

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

Checks whether the repository failed to load.
public getRepoFailureAttribute ( ) : boolean
Результат boolean

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

Gets the short commit hash.
public getShortCommitAttribute ( ) : string
Результат string

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

Determines whether the deployment is aborted.
public isAborted ( ) : boolean
Результат boolean

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

Determines whether the deployment is waiting to be aborted.
public isAborting ( ) : boolean
Результат boolean

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

Determines if the deployment is the latest deployment.
public isCurrent ( ) : boolean
Результат boolean

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

Determines whether the deployment failed.
public isFailed ( ) : boolean
Результат boolean

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

Determines whether the deployment is pending.
public isPending ( ) : boolean
Результат boolean

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

Determines whether the deployment is running.
public isRunning ( ) : boolean
Результат boolean

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

Determines whether the deployment is successful.
public isSuccessful ( ) : boolean
Результат boolean

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

Generates a slack payload for the deployment.
public notificationPayload ( ) : array
Результат array

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

Belongs to relationship.
public project ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

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

Determines how long the deploy took.
public runtime ( ) : false | integer
Результат false | integer False if the deploy is still running, otherwise the runtime in seconds

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

Has many relationship.
public steps ( ) : Illuminate\Database\Eloquent\Relations\HasMany
Результат Illuminate\Database\Eloquent\Relations\HasMany

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

Belongs to relationship.
public user ( ) : BelongsTo
Результат Illuminate\Database\Eloquent\Relations\BelongsTo

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

$appends защищенное свойство

Additional attributes to include in the JSON representation.
protected array $appends
Результат array

$casts защищенное свойство

The attributes that should be casted to native types.
protected array $casts
Результат array

$currentDeployment публичное статическое свойство

public static $currentDeployment

$dates защищенное свойство

The fields which should be tried as Carbon instances.
protected array $dates
Результат array

$fillable защищенное свойство

The attributes that are mass assignable.
protected array $fillable
Результат array

$hidden защищенное свойство

The attributes excluded from the model's JSON form.
protected array $hidden
Результат array