OperationInterface
interface OperationInterface (View source)
Contract for a FlowQuery operation which is applied onto a set of objects.
Methods
No description
No description
No description
This method is called to determine whether the operation can work with the $context objects. It can be implemented to implement runtime conditions.
Details
static string
getShortName()
No description
static int
getPriority()
No description
static bool
isFinal()
No description
bool
canEvaluate($context)
This method is called to determine whether the operation can work with the $context objects. It can be implemented to implement runtime conditions.
mixed|null
evaluate(FlowQuery $flowQuery, array $arguments)
Evaluate the operation on the objects inside $flowQuery->getContext(), taking the $arguments into account.
The resulting operation results should be stored using $flowQuery->setContext().
If the operation is final, evaluate should directly return the operation result.