You are here

public function AcceptHeader::add in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/http-foundation/AcceptHeader.php \Symfony\Component\HttpFoundation\AcceptHeader::add()

Adds an item.

Parameters

AcceptHeaderItem $item:

Return value

AcceptHeader

1 call to AcceptHeader::add()
AcceptHeader::__construct in vendor/symfony/http-foundation/AcceptHeader.php
Constructor.

File

vendor/symfony/http-foundation/AcceptHeader.php, line 106

Class

AcceptHeader
Represents an Accept-* header.

Namespace

Symfony\Component\HttpFoundation

Code

public function add(AcceptHeaderItem $item) {
  $this->items[$item
    ->getValue()] = $item;
  $this->sorted = false;
  return $this;
}