PHP Class REBELinBLUE\Deployer\Heartbeat

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

Protected Properties

Property 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.

Public Methods

Method 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 method

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

generateHash() public method

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

getCallbackUrlAttribute() public method

Define a accessor for the callback URL.
public getCallbackUrlAttribute ( ) : string
return string

isHealthy() public method

Determines whether the heartbeat is currently healthy.
public isHealthy ( ) : boolean
return boolean

pinged() public method

Updates the last_activity timestamp.
public pinged ( ) : boolean
return boolean

project() public method

Belongs to relationship.
public project ( ) : BelongsTo
return Illuminate\Database\Eloquent\Relations\BelongsTo

Property Details

$appends protected_oe property

Additional attributes to include in the JSON representation.
protected array $appends
return array

$casts protected_oe property

The attributes that should be casted to native types.
protected array $casts
return array

$dates protected_oe property

The fields which should be tried as Carbon instances.
protected array $dates
return array

$fillable protected_oe property

The attributes that are mass assignable.
protected array $fillable
return array

$hidden protected_oe property

The attributes excluded from the model's JSON form.
protected array $hidden
return array