__construct() __construct(string $value, array $attributes = []) : mixed Parameters string $value array $attributes Returns mixed —
fromString() fromString(?string $itemValue) : self Builds an AcceptHeaderInstance instance from a string. Parameters ?string $itemValue Returns self —
setValue() setValue(string $value) : $this Set the item value. Parameters string $value Returns $this —
setQuality() setQuality(float $quality) : $this Set the item quality. Parameters float $quality Returns $this —
hasAttribute() hasAttribute(string $name) : bool Tests if an attribute exists. Parameters string $name Returns bool —
getAttribute() getAttribute(string $name, mixed $default = null) : mixed Returns an attribute by its name. Parameters string $name mixed $default Returns mixed —
setAttribute() setAttribute(string $name, string $value) : $this Set an attribute. Parameters string $name string $value Returns $this —