function AcceptHeaderItem::setAttribute
Set an attribute.
Return value
$this
1 call to AcceptHeaderItem::setAttribute()
- AcceptHeaderItem::__construct in vendor/
symfony/ http-foundation/ AcceptHeaderItem.php
File
-
vendor/
symfony/ http-foundation/ AcceptHeaderItem.php, line 149
Class
- AcceptHeaderItem
- Represents an Accept-* header item.
Namespace
Symfony\Component\HttpFoundationCode
public function setAttribute(string $name, string $value) : static {
if ('q' === $name) {
$this->quality = (double) $value;
}
else {
$this->attributes[$name] = $value;
}
return $this;
}