Exemple #1
0
 /**
  * Attach a child node
  *
  * @param Zend_Server_Reflection_Node $node
  * @return void
  */
 public function attachChild(Zend_Server_Reflection_Node $node)
 {
     $this->_children[] = $node;
     if ($node->getParent() !== $this) {
         $node->setParent($this);
     }
 }
Exemple #2
0
 /**
  * getParent() test
  */
 public function testGetParent()
 {
     $parent = new Zend_Server_Reflection_Node('string');
     $child = $parent->createChild('array');
     $this->assertTrue(null === $parent->getParent());
     $this->assertTrue($parent === $child->getParent());
 }