public function setItem(Item $item)
    {
        $this->childOf = $item->id;
        $this->_item = $item;
        
        return $this;
    }
public function setItem(Item $item)
    {
        $this->childOf = $item->id;
        $this->_item = $item;
        
        return $this;
    }
public function setItem ( Item $ item ) { $ this -> childOf = $ item -> id ; $ this -> _item = $ item ; return $ this ; }
Setter method for the item property.

@param \luya\cms\menu\Item $item
@return \luya\cms\menu\InjectItem
Setter method for the item property .