PHP Class REBELinBLUE\Deployer\Heartbeat

Inheritance: extends Illuminate\Database\Eloquent\Model, use trait Illuminate\Database\Eloquent\SoftDeletes, use trait REBELinBLUE\Deployer\Traits\BroadcastChanges
Afficher le fichier Open project: rebelinblue/deployer Class Usage Examples

Protected Properties

Свойство Type Description
$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.

Méthodes publiques

Méthode Description
boot ( ) Override the boot method to bind model event listeners.
generateHash ( ) Generates a hash for use in the webhook URL.
getCallbackUrlAttribute ( ) : string Define a accessor for the callback URL.
isHealthy ( ) : boolean Determines whether the heartbeat is currently healthy.
pinged ( ) : boolean Updates the last_activity timestamp.
project ( ) : BelongsTo Belongs to relationship.

Method Details

boot() public static méthode

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

generateHash() public méthode

Generates a hash for use in the webhook URL.
public generateHash ( )

getCallbackUrlAttribute() public méthode

Define a accessor for the callback URL.
public getCallbackUrlAttribute ( ) : string
Résultat string

isHealthy() public méthode

Determines whether the heartbeat is currently healthy.
public isHealthy ( ) : boolean
Résultat boolean

pinged() public méthode

Updates the last_activity timestamp.
public pinged ( ) : boolean
Résultat boolean

project() public méthode

Belongs to relationship.
public project ( ) : BelongsTo
Résultat Illuminate\Database\Eloquent\Relations\BelongsTo

Property Details

$appends protected_oe property

Additional attributes to include in the JSON representation.
protected array $appends
Résultat array

$casts protected_oe property

The attributes that should be casted to native types.
protected array $casts
Résultat array

$dates protected_oe property

The fields which should be tried as Carbon instances.
protected array $dates
Résultat array

$fillable protected_oe property

The attributes that are mass assignable.
protected array $fillable
Résultat array

$hidden protected_oe property

The attributes excluded from the model's JSON form.
protected array $hidden
Résultat array