private function setProperties(array $properties)
    {
        $this->setType($properties);
        $this->setRoot($properties);
        $this->attributes = MenuItemAttributes::make(
            array_pull($properties, 'attributes', [])
        );
        $this->properties = array_only($properties, [
            'url', 'route', 'action', 'content', 'icon', 'active', 'position',
        ]);

        return $this;
    }
private function setProperties(array $properties)
    {
        $this->setType($properties);
        $this->setRoot($properties);
        $this->attributes = MenuItemAttributes::make(
            array_pull($properties, 'attributes', [])
        );
        $this->properties = array_only($properties, [
            'url', 'route', 'action', 'content', 'icon', 'active', 'position',
        ]);

        return $this;
    }
private function setProperties ( array $ properties ) { $ this -> setType ( $ properties ) ; $ this -> setRoot ( $ properties ) ; $ this -> attributes = MenuItemAttributes :: make ( array_pull ( $ properties , 'attributes' , [ ] ) ) ; $ this -> properties = array_only ( $ properties , [ 'url' , 'route' , 'action' , 'content' , 'icon' , 'active' , 'position' , ] ) ; return $ this ; }
Set the item properties.

@param  array  $properties

@return self
Set the item properties .