public function addChild(self $resourceNode)
    {
        if (!$this->children->contains($resourceNode)) {
            $this->children->add($resourceNode);
        }
    }
public function addChild(self $resourceNode)
    {
        if (!$this->children->contains($resourceNode)) {
            $this->children->add($resourceNode);
        }
    }
public function addChild ( self $ resourceNode ) { if ( ! $ this -> children -> contains ( $ resourceNode ) ) { $ this -> children -> add ( $ resourceNode ) ; } }
Add a child resource node.

@param ResourceNode $resourceNode
Add a child resource node .