UnaryNode
extends Node
in package
FinalYes
Unary logical negation: ! operand.
Table of Contents
Properties
Methods
- __construct() : mixed
- Build a unary op from its operator and operand.
- toArray() : array<string, mixed>
- Serialize to {type,operator,operand}.
Properties
$operand read-only
public
Node
$operand
$operator read-only
public
string
$operator
Methods
__construct()
Build a unary op from its operator and operand.
public
__construct(string $operator, Node $operand) : mixed
Parameters
- $operator : string
- $operand : Node
toArray()
Serialize to {type,operator,operand}.
public
toArray() : array<string, mixed>