Log
extends Action
in package
Table of Contents
- $active : bool
- $dateCreated : DateTime
- $dateUpdated : DateTime
- $handle : string
- $id : int
- $order : int
- $trigger_id : int
- $uid : string
- $_trigger : TriggerInterface
- apply() : mixed
- configTemplate() : string|null
- defineRules() : array<string|int, mixed>
- getConfig() : array<string|int, mixed>
- Get project config
- getDescription() : string
- getHandle() : string
- getName() : string
- getTrigger() : TriggerInterface|null
- Trigger getter
- hasConfig() : bool
- populateFromData() : mixed
- Populate action from array of data
- setData() : mixed
- Data setter
- setTrigger() : mixed
- Trigger setter
- baseAttributes() : array<string|int, mixed>
- Get all base attributes, all attributes not in this array will be considered data
Properties
$active
public
bool
$active
= true
$dateCreated
public
DateTime
$dateCreated
$dateUpdated
public
DateTime
$dateUpdated
$handle
public
string
$handle
$id
public
int
$id
$order
public
int
$order
$trigger_id
public
int
$trigger_id
$uid
public
string
$uid
$_trigger
protected
TriggerInterface
$_trigger
Methods
apply()
public
apply(TriggerInterface $trigger, array<string|int, mixed> $data) : mixed
Parameters
- $trigger : TriggerInterface
- $data : array<string|int, mixed>
Tags
Return values
mixed —configTemplate()
public
configTemplate() : string|null
Tags
Return values
string|null —defineRules()
public
defineRules() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getConfig()
Get project config
public
getConfig() : array<string|int, mixed>
Tags
Return values
array<string|int, mixed> —getDescription()
public
getDescription() : string
Tags
Return values
string —getHandle()
public
getHandle() : string
Tags
Return values
string —getName()
public
getName() : string
Tags
Return values
string —getTrigger()
Trigger getter
public
getTrigger() : TriggerInterface|null
Tags
Return values
TriggerInterface|null —hasConfig()
public
hasConfig() : bool
Tags
Return values
bool —populateFromData()
Populate action from array of data
public
populateFromData(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
Tags
Return values
mixed —setData()
Data setter
public
setData(mixed $data) : mixed
Parameters
- $data : mixed
Tags
Return values
mixed —setTrigger()
Trigger setter
public
setTrigger(TriggerInterface $trigger) : mixed
Parameters
- $trigger : TriggerInterface
Tags
Return values
mixed —baseAttributes()
Get all base attributes, all attributes not in this array will be considered data
protected
baseAttributes() : array<string|int, mixed>