public function addChildAsLast(Node $node)
    {
        if(null === $this->children)
        {
            $this->children = array();
        }

        $this->children[] = $node;
    }
public function addChildAsLast(Node $node)
    {
        if(null === $this->children)
        {
            $this->children = array();
        }

        $this->children[] = $node;
    }
public function addChildAsLast ( Node $ node ) { if ( null === $ this -> children ) { $ this -> children = array ( ) ; } $ this -> children [ ] = $ node ; }
Add a child to the end of child nodes list

@param Node $node
Add a child to the end of child nodes list