BinaryOpNode
class BinaryOpNode extends ExpressionNode implements OperatorNode
Binary operation: arithmetic, logical, bitwise, comparison, null-coalescing, or pipe.
Constants
| private Ops |
|
Methods
__construct(ExpressionNode $left, string $operator, ExpressionNode $right, Position|null $position = null)
No description
static ExpressionNode
nest(string $operator, ExpressionNode ...$exprs)
Creates nested BinaryOp nodes from a list of expressions.
string
array
getOperatorPrecedence()
Returns [precedence, associativity] for this operator.
getIterator()
No description
Details
at line 26
__construct(ExpressionNode $left, string $operator, ExpressionNode $right, Position|null $position = null)
No description
at line 41
static ExpressionNode
nest(string $operator, ExpressionNode ...$exprs)
Creates nested BinaryOp nodes from a list of expressions.
at line 57
string
print(PrintContext $context)
No description
at line 65
array
getOperatorPrecedence()
Returns [precedence, associativity] for this operator.
at line 89
Generator
getIterator()
No description