Object describing a collection of link relations

 Methods

Add a link

add(\PhlyRestfully\Link $link, bool $overwrite) : \PhlyRestfully\LinkCollection
fluent This method is part of a fluent interface and will return the same instance

Parameters

$overwrite

bool

Returns

Return a count of link relations

count() : int

Returns

int

Retrieve a link relation

get(string $relation) : \PhlyRestfully\Link | array

Parameters

$relation

string

Returns

Retrieve internal iterator

getIterator() : \ArrayIterator

Returns

Does a given link relation exist?

has(string $relation) : bool

Parameters

$relation

string

Returns

bool

Remove a given link relation

remove(string $relation) : bool

Parameters

$relation

string

Returns

bool