BinaryNode
extends Node
in package
FinalYes
Binary operation: logical (&& ||) or comparison (== != > >= < <=).
Table of Contents
Properties
Methods
- __construct() : mixed
- Build a binary op from its operator and two operands.
- toArray() : array<string, mixed>
- Serialize to {type,operator,left,right}.
Properties
$left read-only
public
Node
$left
$operator read-only
public
string
$operator
$right read-only
public
Node
$right
Methods
__construct()
Build a binary op from its operator and two operands.
public
__construct(string $operator, Node $left, Node $right) : mixed
Parameters
toArray()
Serialize to {type,operator,left,right}.
public
toArray() : array<string, mixed>