public function setServerOrigin(string $scheme, string $host, int $port): self
    {
        \assert(empty($scheme) === false);
        \assert(empty($host) === false);
        \assert(0 < $port && $port <= 0xFFFF);

        $this->serverOriginScheme = $scheme;
        $this->serverOriginHost   = $host;

        if (\strcasecmp($scheme, 'http') === 0 && $port === 80) {
            $port = null;
        } elseif (\strcasecmp($scheme, 'https') === 0 && $port === 443) {
            $port = null;
        }
        $this->serverOriginPort = $port;

        return $this;
    }
public function setServerOrigin(string $scheme, string $host, int $port): self
    {
        \assert(empty($scheme) === false);
        \assert(empty($host) === false);
        \assert(0 < $port && $port <= 0xFFFF);

        $this->serverOriginScheme = $scheme;
        $this->serverOriginHost   = $host;

        if (\strcasecmp($scheme, 'http') === 0 && $port === 80) {
            $port = null;
        } elseif (\strcasecmp($scheme, 'https') === 0 && $port === 443) {
            $port = null;
        }
        $this->serverOriginPort = $port;

        return $this;
    }
public function setServerOrigin ( string $ scheme , string $ host , int $ port ) : self { \ assert ( empty ( $ scheme ) === false ) ; \ assert ( empty ( $ host ) === false ) ; \ assert ( 0 < $ port && $ port <= 0xFFFF ) ; $ this -> serverOriginScheme = $ scheme ; $ this -> serverOriginHost = $ host ; if ( \ strcasecmp ( $ scheme , 'http' ) === 0 && $ port === 80 ) { $ port = null ; } elseif ( \ strcasecmp ( $ scheme , 'https' ) === 0 && $ port === 443 ) { $ port = null ; } $ this -> serverOriginPort = $ port ; return $ this ; }
Set server Origin URL.

@param string $scheme
@param string $host
@param int    $port

@return self
Set server Origin URL .