src/main/php/response/Status.php
public function line($httpVersion, string $sapi = PHP_SAPI): string
    {
        if ('cgi' === $sapi) {
            return 'Status: ' . $this->code . ' ' . $this->reasonPhrase;
        }

        return $httpVersion . ' ' . $this->code . ' ' . $this->reasonPhrase;
    }
public function line($httpVersion, string $sapi = PHP_SAPI): string
    {
        if ('cgi' === $sapi) {
            return 'Status: ' . $this->code . ' ' . $this->reasonPhrase;
        }

        return $httpVersion . ' ' . $this->code . ' ' . $this->reasonPhrase;
    }
public function line ( $ httpVersion , string $ sapi = PHP_SAPI ) : string { if ( 'cgi' === $ sapi ) { return 'Status: ' . $ this -> code . ' ' . $ this -> reasonPhrase ; } return $ httpVersion . ' ' . $ this -> code . ' ' . $ this -> reasonPhrase ; }
returns status line

@param   string  $httpVersion
@param   string  $sapi         optional
@return  string
returns status line