private function setType(array &$properties)
    {
        $type = array_pull($properties, 'type', null);

        $this->type = is_null($type)
            ? $this->guessType($properties)
            : $type;

        return $this;
    }
private function setType(array &$properties)
    {
        $type = array_pull($properties, 'type', null);

        $this->type = is_null($type)
            ? $this->guessType($properties)
            : $type;

        return $this;
    }
private function setType ( array & $ properties ) { $ type = array_pull ( $ properties , 'type' , null ) ; $ this -> type = is_null ( $ type ) ? $ this -> guessType ( $ properties ) : $ type ; return $ this ; }
Set the menu item type.

@param  array  $properties

@return self
Set the menu item type .