public function Twig_Node::__construct in Translation template extractor 6.3
Same name and namespace in other branches
- 7.3 vendor/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:
33 calls to Twig_Node::__construct()
- Twig_Node_AutoEscape::__construct in vendor/
Twig/ Node/ AutoEscape.php - Constructor.
- Twig_Node_Block::__construct in vendor/
Twig/ Node/ Block.php - Constructor.
- Twig_Node_BlockReference::__construct in vendor/
Twig/ Node/ BlockReference.php - Constructor.
- Twig_Node_Do::__construct in vendor/
Twig/ Node/ Do.php - Constructor.
- Twig_Node_Expression_Array::__construct in vendor/
Twig/ Node/ Expression/ Array.php - Constructor.
33 methods override Twig_Node::__construct()
- Twig_Node_AutoEscape::__construct in vendor/
Twig/ Node/ AutoEscape.php - Constructor.
- Twig_Node_Block::__construct in vendor/
Twig/ Node/ Block.php - Constructor.
- Twig_Node_BlockReference::__construct in vendor/
Twig/ Node/ BlockReference.php - Constructor.
- Twig_Node_Do::__construct in vendor/
Twig/ Node/ Do.php - Constructor.
- Twig_Node_Expression_Array::__construct in vendor/
Twig/ Node/ Expression/ Array.php - Constructor.
File
- vendor/
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;
}