Example #1
0
 /**
  * Set parent item
  *
  * @param Item $item
  * @return $this
  */
 public function setParentItem($item)
 {
     if ($item) {
         $this->_parentItem = $item;
         $item->setHasChildren(true);
         $item->addChildItem($this);
     }
     return $this;
 }