You are here

public function Twig_Node::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/twig/twig/lib/Twig/Node.php \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']).

Parameters

array $nodes An array of named nodes:

array $attributes An array of attributes (should not be nodes):

int $lineno The line number:

string $tag The tag name associated with the Node:

36 calls to Twig_Node::__construct()
Twig_Node_AutoEscape::__construct in vendor/twig/twig/lib/Twig/Node/AutoEscape.php
Constructor.
Twig_Node_Block::__construct in vendor/twig/twig/lib/Twig/Node/Block.php
Constructor.
Twig_Node_BlockReference::__construct in vendor/twig/twig/lib/Twig/Node/BlockReference.php
Constructor.
Twig_Node_CheckSecurity::__construct in vendor/twig/twig/lib/Twig/Node/CheckSecurity.php
Constructor.
Twig_Node_Do::__construct in vendor/twig/twig/lib/Twig/Node/Do.php
Constructor.

... See full list

36 methods override Twig_Node::__construct()
Twig_Node_AutoEscape::__construct in vendor/twig/twig/lib/Twig/Node/AutoEscape.php
Constructor.
Twig_Node_Block::__construct in vendor/twig/twig/lib/Twig/Node/Block.php
Constructor.
Twig_Node_BlockReference::__construct in vendor/twig/twig/lib/Twig/Node/BlockReference.php
Constructor.
Twig_Node_CheckSecurity::__construct in vendor/twig/twig/lib/Twig/Node/CheckSecurity.php
Constructor.
Twig_Node_Do::__construct in vendor/twig/twig/lib/Twig/Node/Do.php
Constructor.

... See full list

File

vendor/twig/twig/lib/Twig/Node.php, line 36

Class

Twig_Node
Represents a node in the AST.

Code

public function __construct(array $nodes = array(), array $attributes = array(), $lineno = 0, $tag = null) {
  $this->nodes = $nodes;
  $this->attributes = $attributes;
  $this->lineno = $lineno;
  $this->tag = $tag;
}