public function getItem()
    {
        if ($this->_item === null) {
            $this->_item = Yii::$app->menu->find()->where(['id' => $this->childOf])->with('hidden')->one();
            
            if (!$this->_item) {
                throw new Exception("Unable to find item with id " . $this->childOf);
            }
        }
        
        return $this->_item;
    }
public function getItem()
    {
        if ($this->_item === null) {
            $this->_item = Yii::$app->menu->find()->where(['id' => $this->childOf])->with('hidden')->one();
            
            if (!$this->_item) {
                throw new Exception("Unable to find item with id " . $this->childOf);
            }
        }
        
        return $this->_item;
    }
public function getItem ( ) { if ( $ this -> _item === null ) { $ this -> _item = Yii :: $ app -> menu -> find ( ) -> where ( [ 'id' => $ this -> childOf ] ) -> with ( 'hidden' ) -> one ( ) ; if ( ! $ this -> _item ) { throw new Exception ( "Unable to find item with id " . $ this -> childOf ) ; } } return $ this -> _item ; }
Returns the evalutead menu item whether from the childOf property or set from the setter method.
@return Item
@throws Exception
Returns the evalutead menu item whether from the childOf property or set from the setter method .