Symfony\Component\HttpFoundation\AcceptHeaderItem
Represents an Accept-* header item.
- Author: Jean-François Simon <contact@jfsimon.fr>
Synopsis
class AcceptHeaderItem
{
- // members
- private string $value;
- private float $quality;
- private integer $index;
- private array $attributes;
- // methods
- public void __construct()
- public static AcceptHeaderItem fromString()
- public string __toString()
- public AcceptHeaderItem setValue()
- public string getValue()
- public AcceptHeaderItem setQuality()
- public float getQuality()
- public AcceptHeaderItem setIndex()
- public int getIndex()
- public Boolean hasAttribute()
- public mixed getAttribute()
- public array getAttributes()
- public AcceptHeaderItem setAttribute()
Members
private
- $attributes — array
- $index — int
- $quality — float
- $value — string
Methods
public
- __construct() — Constructor.
- __toString() — Returns header value's string representation.
- fromString() — Builds an AcceptHeaderInstance instance from a string.
- getAttribute() — Returns an attribute by its name.
- getAttributes() — Returns all attributes.
- getIndex() — Returns the item index.
- getQuality() — Returns the item quality.
- getValue() — Returns the item value.
- hasAttribute() — Tests if an attribute exists.
- setAttribute() — Set an attribute.
- setIndex() — Set the item index.
- setQuality() — Set the item quality.
- setValue() — Set the item value.