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 69
__construct(Processor $processor, string $eventClass, string|null $name = null)

Parameters

Processor $processor
string $eventClass
string|null $name

at line 94
bool match(Event $event)

Überprüfen ob auf Event geschaut werden soll

Parameters

Event $event

Return Value

bool

at line 103
string getName()

Name der Regel

Return Value

string

at line 114
Rule appendCondition(Condition $condition)

Bedingung hinzufügen

Parameters

Condition $condition

Return Value

Rule

at line 126
bool validate(Event $event)

Regel überprüfen

Parameters

Event $event

Return Value

bool

at line 142
Rule appendAction(Action $actions)

Neue Aktion

Parameters

Action $actions

Return Value

Rule

at line 154
Rule execute(Event $event)

Regel ausführen

Parameters

Event $event

Return Value

Rule

at line 168
Processor getProcessor()

Workflow-Objekt

Return Value

Processor