class LinkHeaderItem

Methods

__construct(string $uri, string|array $attributes)

Constructor.

string
__toString()

cast item to string

string
getUri()

Get URI.

setUri(string $uri)

Set a new URI.

string
getRel()

Get rel attribute

setAttribute(string $name, string $value)

Set attribute

string
getAttribute(string $name)

Get an attribute.

Details

at line 30
__construct(string $uri, string|array $attributes)

Constructor.

Parameters

string $uri uri value of item
string|array $attributes array of attributes or rel attribute

at line 50
string __toString()

cast item to string

Return Value

string

at line 66
string getUri()

Get URI.

Return Value

string

at line 78
LinkHeaderItem setUri(string $uri)

Set a new URI.

Parameters

string $uri new URI value

Return Value

LinkHeaderItem

at line 89
string getRel()

Get rel attribute

Return Value

string

at line 103
LinkHeaderItem setAttribute(string $name, string $value)

Set attribute

Parameters

string $name attribute name
string $value attribute value

Return Value

LinkHeaderItem

at line 116
string getAttribute(string $name)

Get an attribute.

Parameters

string $name attribute name

Return Value

string