protected function getStatusHeader($protocolVersion, $statusCode, $reasonPhrase)
    {
        if (empty($reasonPhrase)) {
            $reasonPhrase = (new ResponseStatus($statusCode))->getReasonPhrase();
        }
        
        return "HTTP/{$protocolVersion} {$statusCode} {$reasonPhrase}";
    }
protected function getStatusHeader($protocolVersion, $statusCode, $reasonPhrase)
    {
        if (empty($reasonPhrase)) {
            $reasonPhrase = (new ResponseStatus($statusCode))->getReasonPhrase();
        }
        
        return "HTTP/{$protocolVersion} {$statusCode} {$reasonPhrase}";
    }
protected function getStatusHeader ( $ protocolVersion , $ statusCode , $ reasonPhrase ) { if ( empty ( $ reasonPhrase ) ) { $ reasonPhrase = ( new ResponseStatus ( $ statusCode ) ) -> getReasonPhrase ( ) ; } return "HTTP/{$protocolVersion} {$statusCode} {$reasonPhrase}" ; }
Get the response header for a status code

@param string $protocolVersion
@param int    $statusCode
@param string $reasonPhrase
@return string
Get the response header for a status code