You are here

public function Twig_Node::setNode in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/twig/twig/lib/Twig/Node.php \Twig_Node::setNode()

Sets a node.

Parameters

string $name:

Twig_Node $node:

1 call to Twig_Node::setNode()
Twig_Node_Set::__construct in vendor/twig/twig/lib/Twig/Node/Set.php
Constructor.

File

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

Class

Twig_Node
Represents a node in the AST.

Code

public function setNode($name, $node = null) {
  $this->nodes[$name] = $node;
}