public function getNode($name)
    {
        if (!array_key_exists($name, $this->nodes)) {
            throw new LogicException(sprintf('Node "%s" does not exist for Node "%s".', $name, get_class($this)));
        }

        return $this->nodes[$name];
    }
public function getNode($name)
    {
        if (!array_key_exists($name, $this->nodes)) {
            throw new LogicException(sprintf('Node "%s" does not exist for Node "%s".', $name, get_class($this)));
        }

        return $this->nodes[$name];
    }
public function getNode ( $ name ) { if ( ! array_key_exists ( $ name , $ this -> nodes ) ) { throw new LogicException ( sprintf ( 'Node "%s" does not exist for Node "%s".' , $ name , get_class ( $ this ) ) ) ; } return $ this -> nodes [ $ name ] ; }
Gets a node by name.

@param  string The node name

@return Twig_Node A Twig_Node instance
Gets a node by name .