Example #1
0
 /**
  * Set node key
  *
  * @param string  $key     Key to set
  * @param boolean $setFlag Flag OPTIONAL
  *
  * @return void
  */
 public function setKey($key, $setFlag = false)
 {
     foreach ($this->getChildren() as $node) {
         $node->setParentClass($key);
     }
     $this->moveClassFile($key);
     parent::setKey($key);
     if ($setFlag) {
         $this->isChanged = true;
     }
 }