SymfonyComponentHttpFoundationAcceptHeaderItem

Represents an Accept-* header item.

Summary

No protected methods found
No protected properties found
N/A
No private methods found
N/A
File
vendorSymfonyComponentHttpFoundationAcceptHeaderItem.php
Package
Default
Class hierarchy
SymfonyComponentHttpFoundationAcceptHeaderItem

Tags

author

Jean-François Simon contact@jfsimon.fr

Properties

$value

$value : string

Type

string

Tags

None found

$quality

$quality : float

Type

float

Tags

None found

$index

$index : integer

Type

integer

Tags

None found

$attributes

$attributes : array

Type

array

Tags

None found

Methods

__construct()

__construct(string  $value, array  $attributes = array()) 

Constructor.

Parameters

string $value
array $attributes

Tags

None found

fromString()

fromString(string  $itemValue) : \Symfony\Component\HttpFoundation\AcceptHeaderItem

Builds an AcceptHeaderInstance instance from a string.

Parameters

string $itemValue

Returns

SymfonyComponentHttpFoundationAcceptHeaderItem

static

Tags

None found

__toString()

__toString() : string

Returns header value's string representation.

Returns

string

Tags

None found

setValue()

setValue(string  $value) : \Symfony\Component\HttpFoundation\AcceptHeaderItem

Set the item value.

Parameters

string $value

Returns

SymfonyComponentHttpFoundationAcceptHeaderItem

Tags

None found

getValue()

getValue() : string

Returns the item value.

Returns

string

Tags

None found

setQuality()

setQuality(float  $quality) : \Symfony\Component\HttpFoundation\AcceptHeaderItem

Set the item quality.

Parameters

float $quality

Returns

SymfonyComponentHttpFoundationAcceptHeaderItem

Tags

None found

getQuality()

getQuality() : float

Returns the item quality.

Returns

float

Tags

None found

setIndex()

setIndex(integer  $index) : \Symfony\Component\HttpFoundation\AcceptHeaderItem

Set the item index.

Parameters

integer $index

Returns

SymfonyComponentHttpFoundationAcceptHeaderItem

Tags

None found

getIndex()

getIndex() : integer

Returns the item index.

Returns

integer

Tags

None found

hasAttribute()

hasAttribute(string  $name) : Boolean

Tests if an attribute exists.

Parameters

string $name

Returns

Boolean

Tags

None found

getAttribute()

getAttribute(string  $name, mixed  $default = null) : mixed

Returns an attribute by its name.

Parameters

string $name
mixed $default

Returns

mixed

Tags

None found

getAttributes()

getAttributes() : array

Returns all attributes.

Returns

array

Tags

None found

setAttribute()

setAttribute(string  $name, string  $value) : \Symfony\Component\HttpFoundation\AcceptHeaderItem

Set an attribute.

Parameters

string $name
string $value

Returns

SymfonyComponentHttpFoundationAcceptHeaderItem

Tags

None found