FML/ManiaCode.php
public function addAddFavorite($loginOrIp = null, $port = null)
    {
        $favoriteElement = new AddFavorite($loginOrIp, $port);
        return $this->addElement($favoriteElement);
    }
public function addAddFavorite($loginOrIp = null, $port = null)
    {
        $favoriteElement = new AddFavorite($loginOrIp, $port);
        return $this->addElement($favoriteElement);
    }
public function addAddFavorite ( $ loginOrIp = null , $ port = null ) { $ favoriteElement = new AddFavorite ( $ loginOrIp , $ port ) ; return $ this -> addElement ( $ favoriteElement ) ; }
Add a server as favorite

@api
@param string $loginOrIp (optional) Server login or ip
@param int    $port      (optional) Server port
@return static
Add a server as favorite