W3cubDocs

/Symfony 4.1

ArrayNode

class ArrayNode extends Node

Properties

$nodes from Node
$attributes from Node
protected $index

Methods

__construct()
__toString() from Node
compile(Compiler $compiler)

Compiles the node to PHP.

evaluate($functions, $values)
toArray()
dump() from Node
dumpString($value) from Node
isHash(array $value) from Node
addElement(Node $value, Node $key = null)
getKeyValuePairs()
compileArguments(Compiler $compiler, $withKeys = true)

Details

__construct()

__toString()

compile(Compiler $compiler)

Compiles the node to PHP.

Parameters

Compiler $compiler

evaluate($functions, $values)

Parameters

$functions
$values

toArray()

dump()

protected dumpString($value)

Parameters

$value

protected isHash(array $value)

Parameters

array $value

addElement(Node $value, Node $key = null)

Parameters

Node $value
Node $key

protected getKeyValuePairs()

protected compileArguments(Compiler $compiler, $withKeys = true)

Parameters

Compiler $compiler
$withKeys

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/ExpressionLanguage/Node/ArrayNode.html