public function AcceptHeaderItem::__construct

Constructor.

Parameters

string $value:

array $attributes:

File

drupal/core/vendor/symfony/http-foundation/Symfony/Component/HttpFoundation/AcceptHeaderItem.php, line 47

Class

AcceptHeaderItem
Represents an Accept-* header item.

Namespace

Symfony\Component\HttpFoundation

Code

public function __construct($value, array $attributes = array()) {
  $this->value = $value;
  foreach ($attributes as $name => $value) {
    $this
      ->setAttribute($name, $value);
  }
}