Table of Contents
-
$headers
: array<string|int, mixed>
-
$statusCode
: int
-
__construct()
: mixed
-
getHeaders()
: array<string|int, mixed>
-
getStatusCode()
: int
-
setHeaders()
: mixed
private
array<string|int, mixed>
$headers
$statusCode
private
int
$statusCode
__construct()
public
__construct([int $statusCode = 401 ][, mixed $message = 'Unauthorized' ][, array<string|int, mixed> $headers = [] ][, mixed $code = E_NOTICE ][, Throwable $previous = null ]) : mixed
Parameters
-
$statusCode
: int
= 401
-
-
$message
: mixed
= 'Unauthorized'
-
-
$headers
: array<string|int, mixed>
= []
-
-
$code
: mixed
= E_NOTICE
-
-
$previous
: Throwable
= null
-
Return values
mixed
—
public
getHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>
—
getStatusCode()
public
getStatusCode() : int
Return values
int
—
public
setHeaders(array<string|int, mixed> $headers) : mixed
Parameters
-
$headers
: array<string|int, mixed>
-
Return values
mixed
—