AcceptHeader
Table of Contents
Methods
-
__construct()
: mixed
-
accepts()
: MediaType|null
-
getRejects()
: array<string|int, mixed>
-
getTypes()
: array<string|int, mixed>
-
parse()
: AcceptHeader
-
rejects()
: bool
__construct()
public
__construct(array<string|int, mixed> $types, array<string|int, mixed> $rejects) : mixed
Parameters
-
$types
: array<string|int, mixed>
-
-
$rejects
: array<string|int, mixed>
-
accepts()
public
accepts(MediaType|string $mediaType) : MediaType|null
Parameters
-
$mediaType
: MediaType|string
-
getRejects()
public
getRejects() : array<string|int, mixed>
Return values
array<string|int, mixed>
getTypes()
public
getTypes() : array<string|int, mixed>
Return values
array<string|int, mixed>
parse()
public
static parse(HttpHeader $header) : AcceptHeader
Parameters
-
$header
: HttpHeader
-
rejects()
public
rejects(MediaType|string $mediaType) : bool
Parameters
-
$mediaType
: MediaType|string
-