Documentation

Node
in package

Represents a node in the AST.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

$attributes  : mixed
$nodes  : mixed
__construct()  : mixed
__toString()  : string
compile()  : mixed
dump()  : mixed
evaluate()  : mixed
toArray()  : mixed
dumpString()  : mixed
isHash()  : mixed

Properties

$attributes

public mixed $attributes = []

$nodes

public mixed $nodes = []

Methods

__construct()

public __construct([array<string|int, mixed> $nodes = [] ][, array<string|int, mixed> $attributes = [] ]) : mixed
Parameters
$nodes : array<string|int, mixed> = []

An array of nodes

$attributes : array<string|int, mixed> = []

An array of attributes

Return values
mixed

__toString()

public __toString() : string
Return values
string

compile()

public compile(Compiler $compiler) : mixed
Parameters
$compiler : Compiler
Return values
mixed

dump()

public dump() : mixed
Return values
mixed

evaluate()

public evaluate(array<string|int, mixed> $functions, array<string|int, mixed> $values) : mixed
Parameters
$functions : array<string|int, mixed>
$values : array<string|int, mixed>
Return values
mixed

toArray()

public toArray() : mixed
Return values
mixed

dumpString()

protected dumpString(string $value) : mixed
Parameters
$value : string
Return values
mixed

isHash()

protected isHash(array<string|int, mixed> $value) : mixed
Parameters
$value : array<string|int, mixed>
Return values
mixed

Search results