public function getServerPort()
    {
        return isset($this->swooleRequest->server['SERVER_PORT']) ? (int) $this->swooleRequest->server['SERVER_PORT'] : null;
    }
public function getServerPort()
    {
        return isset($this->swooleRequest->server['SERVER_PORT']) ? (int) $this->swooleRequest->server['SERVER_PORT'] : null;
    }
public function getServerPort ( ) { return isset ( $ this -> swooleRequest -> server [ 'SERVER_PORT' ] ) ? ( int ) $ this -> swooleRequest -> server [ 'SERVER_PORT' ] : null ; }
Returns the server port number.
@return int|null server port number, null if not available
Returns the server port number .