public function setTitle($title)
    {
        // if the alias is empty use the title for the alias.
        if ($this->_alias === null) {
            $this->setAlias($title);
        }
        
        $this->_title = $title;
        
        return $this;
    }
public function setTitle($title)
    {
        // if the alias is empty use the title for the alias.
        if ($this->_alias === null) {
            $this->setAlias($title);
        }
        
        $this->_title = $title;
        
        return $this;
    }
public function setTitle ( $ title ) { // if the alias is empty use the title for the alias. if ( $ this -> _alias === null ) { $ this -> setAlias ( $ title ) ; } $ this -> _title = $ title ; return $ this ; }
Setter method for the menu title.

@param string $title The menu item title.
@return \luya\cms\menu\InjectItem
Setter method for the menu title .