You are here

public function Twig_Node_Expression_Test::__construct in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/Twig/Node/Expression/Test.php \Twig_Node_Expression_Test::__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:

Overrides Twig_Node::__construct

1 call to Twig_Node_Expression_Test::__construct()
Twig_Node_Expression_Test_Defined::__construct in vendor/twig/twig/lib/Twig/Node/Expression/Test/Defined.php
Constructor.
1 method overrides Twig_Node_Expression_Test::__construct()
Twig_Node_Expression_Test_Defined::__construct in vendor/twig/twig/lib/Twig/Node/Expression/Test/Defined.php
Constructor.

File

vendor/twig/twig/lib/Twig/Node/Expression/Test.php, line 13

Class

Twig_Node_Expression_Test

Code

public function __construct(Twig_NodeInterface $node, $name, Twig_NodeInterface $arguments = null, $lineno) {
  parent::__construct(array(
    'node' => $node,
    'arguments' => $arguments,
  ), array(
    'name' => $name,
  ), $lineno);
}