Twig_Node::__construct
Constructor.
The nodes are automatically made available as properties ($this->node). The attributes are automatically made available as array items ($this['name']).
Signature
public function __construct(array
$nodes,
[array
$attributes = 0,
[integer
$lineno = 0,
[string
$tag = null]]] )
Parameters
$nodes
— array- An array of named nodes
$attributes
— array- An array of attributes (should not be nodes)
$lineno
— integer- The line number
$tag
— string- The tag name associated with the Node