Tsugi

LinkHeaderItem
in package

Tags
author

List of contributors https://github.com/libgraviton/link-header-rel-parser/graphs/contributors

license

https://opensource.org/licenses/MIT MIT License

Table of Contents

Properties

$attributes  : array<string|int, mixed>
$uri  : string

Methods

__construct()  : mixed
Constructor.
__toString()  : string
cast item to string
getAttribute()  : string
Get an attribute.
getRel()  : string
Get rel attribute
getUri()  : string
Get URI.
setAttribute()  : LinkHeaderItem
Set attribute
setUri()  : LinkHeaderItem
Set a new URI.

Properties

Methods

__construct()

Constructor.

public __construct(string $uri, string|array<string|int, mixed> $attributes) : mixed
Parameters
$uri : string

uri value of item

$attributes : string|array<string|int, mixed>

array of attributes or rel attribute

__toString()

cast item to string

public __toString() : string
Return values
string

getAttribute()

Get an attribute.

public getAttribute(string $name) : string
Parameters
$name : string

attribute name

Return values
string

getRel()

Get rel attribute

public getRel() : string
Return values
string

        
On this page

Search results