You are here

public function AcceptHeaderItem::__construct in Zircon Profile 8.0

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

Constructor.

Parameters

string $value:

array $attributes:

File

vendor/symfony/http-foundation/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);
  }
}