ConditionInterface
in
Table of Contents
- check() : bool
- Check if this condition applies
- configTemplate() : string
- Get configuration template
- forTriggers() : array<string|int, mixed>|null
- To which triggers this condition applies
- getConfig() : array<string|int, mixed>
- Get project config
- getDescription() : atring
- Description getter
- getHandle() : string
- Handle getter
- getName() : string
- Name getter
- getTrigger() : TriggerInterface|null
- Trigger getter
- hasConfig() : bool
- Does this condition have configuration
- populateFromData() : mixed
- Populate condition from array of data
- setData() : mixed
- Data setter
- setTrigger() : mixed
- Trigger setter
Methods
check()
Check if this condition applies
public
check(TriggerInterface $trigger, array<string|int, mixed> $data) : bool
Parameters
- $trigger : TriggerInterface
- $data : array<string|int, mixed>
Return values
bool —configTemplate()
Get configuration template
public
configTemplate() : string
Return values
string —forTriggers()
To which triggers this condition applies
public
forTriggers() : array<string|int, mixed>|null
Return values
array<string|int, mixed>|null —getConfig()
Get project config
public
getConfig() : array<string|int, mixed>
Return values
array<string|int, mixed> —getDescription()
Description getter
public
getDescription() : atring
Return values
atring —getHandle()
Handle getter
public
getHandle() : string
Return values
string —getName()
Name getter
public
getName() : string
Return values
string —getTrigger()
Trigger getter
public
getTrigger() : TriggerInterface|null
Return values
TriggerInterface|null —hasConfig()
Does this condition have configuration
public
hasConfig() : bool
Return values
bool —populateFromData()
Populate condition from array of data
public
populateFromData(array<string|int, mixed> $data) : mixed
Parameters
- $data : array<string|int, mixed>
Return values
mixed —setData()
Data setter
public
setData(array<string|int, mixed>|string|null $data) : mixed
Parameters
- $data : array<string|int, mixed>|string|null
Return values
mixed —setTrigger()
Trigger setter
public
setTrigger(TriggerInterface $trigger) : mixed
Parameters
- $trigger : TriggerInterface