class Rule extends Alvine

Regel für die Automatisierung

Properties

protected string $name
protected string $eventClass
protected Collection $conditions
protected Collection $actions
protected Processor $processor

Methods

__construct(Processor $processor, string $eventClass, string|null $name = null)

No description

bool
match(Event $event)

Überprüfen ob auf Event geschaut werden soll

string
getName()

Name der Regel

appendCondition(Condition $condition)

Bedingung hinzufügen

bool
validate(Event $event)

Regel überprüfen

appendAction(Action $actions)

Neue Aktion

execute(Event $event)

Regel ausführen

getProcessor()

Workflow-Objekt

Details

at line 70
__construct(Processor $processor, string $eventClass, string|null $name = null)

Parameters

Processor $processor
string $eventClass
string|null $name

at line 95
bool match(Event $event)

Überprüfen ob auf Event geschaut werden soll

Parameters

Event $event

Return Value

bool

at line 104
string getName()

Name der Regel

Return Value

string

at line 115
Rule appendCondition(Condition $condition)

Bedingung hinzufügen

Parameters

Condition $condition

Return Value

Rule

at line 127
bool validate(Event $event)

Regel überprüfen

Parameters

Event $event

Return Value

bool

at line 143
Rule appendAction(Action $actions)

Neue Aktion

Parameters

Action $actions

Return Value

Rule

at line 155
Rule execute(Event $event)

Regel ausführen

Parameters

Event $event

Return Value

Rule

at line 169
Processor getProcessor()

Workflow-Objekt

Return Value

Processor