CompositeExpression
in package
implements
Expression
Expression of Expressions combined by AND or OR operation.
Table of Contents
Interfaces
- Expression
- Expression for the {@link Selectable} interface.
Constants
Properties
- $expressions : array<string|int, Expression>
- $type : string
Methods
- __construct() : mixed
- getExpressionList() : array<string|int, Expression>
- Returns the list of expressions nested in this composite.
- getType() : string
- visit() : mixed
Constants
TYPE_AND
public
mixed
TYPE_AND
= 'AND'
TYPE_OR
public
mixed
TYPE_OR
= 'OR'
Properties
$expressions
private
array<string|int, Expression>
$expressions
= []
$type
private
string
$type
Methods
__construct()
public
__construct(string $type, array<string|int, mixed> $expressions) : mixed
Parameters
- $type : string
- $expressions : array<string|int, mixed>
Tags
getExpressionList()
Returns the list of expressions nested in this composite.
public
getExpressionList() : array<string|int, Expression>
Return values
array<string|int, Expression>getType()
public
getType() : string
Return values
stringvisit()
public
visit(ExpressionVisitor $visitor) : mixed
Parameters
- $visitor : ExpressionVisitor