\Symfony\Component\HttpFoundationAcceptHeader

Represents an Accept-* header.

An accept header is compound with a list of items, sorted by descending quality.

Summary

Methods
Properties
Constants
__construct()
fromString()
__toString()
has()
get()
add()
all()
filter()
first()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
sort()
$items
$sorted
N/A

Properties

$sorted

$sorted : boolean

Type

boolean

Methods

__toString()

__toString() : string

Returns header value's string representation.

Returns

string

has()

has(string  $value) : boolean

Tests if header has given value.

Parameters

string $value

Returns

boolean

sort()

sort() 

Sorts items by descending quality.