Documentation

Node
in package

Represents a node in the AST.

Tags
author

Fabien Potencier fabien@symfony.com

Table of Contents

Properties

$attributes  : mixed
$nodes  : mixed

Methods

__construct()  : mixed
__toString()  : string
compile()  : void
dump()  : string
evaluate()  : mixed
toArray()  : array<string|int, mixed>
dumpString()  : string
isHash()  : bool

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

__toString()

public __toString() : string
Return values
string

dump()

public dump() : string
Return values
string

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>

toArray()

public toArray() : array<string|int, mixed>
Tags
throws
BadMethodCallException

when this node cannot be transformed to an array

Return values
array<string|int, mixed>

dumpString()

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

isHash()

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

        
On this page

Search results