public function alias($alias = null)
    {
        if ($alias !== null) {
            $this->setAlias($alias);
        }

        return $this->getAlias();
    }
public function alias($alias = null)
    {
        if ($alias !== null) {
            $this->setAlias($alias);
        }

        return $this->getAlias();
    }
public function alias ( $ alias = null ) { if ( $ alias !== null ) { $ this -> setAlias ( $ alias ) ; } return $ this -> getAlias ( ) ; }
Returns the endpoint alias or sets a new one

@param string|null $alias the new endpoint alias
@return string
@deprecated 2.0.0 Use getAlias and setAlias instead
Returns the endpoint alias or sets a new one