$items
$items : array<mixed,\Symfony\Component\HttpFoundation\AcceptHeaderItem>
Represents an Accept-* header.
An accept header is compound with a list of items, sorted by descending quality.
$items : array<mixed,\Symfony\Component\HttpFoundation\AcceptHeaderItem>
__construct(array<mixed,\Symfony\Component\HttpFoundation\AcceptHeaderItem> $items)
array<mixed,\Symfony\Component\HttpFoundation\AcceptHeaderItem> | $items |
get(string $value) : \Symfony\Component\HttpFoundation\AcceptHeaderItem|null
Returns given value's item, if exists.
string | $value |
add(\Symfony\Component\HttpFoundation\AcceptHeaderItem $item) : $this
Adds an item.
\Symfony\Component\HttpFoundation\AcceptHeaderItem | $item |
all() : array<mixed,\Symfony\Component\HttpFoundation\AcceptHeaderItem>
Returns all items.
first() : \Symfony\Component\HttpFoundation\AcceptHeaderItem|null
Returns first item.