Documentation

GenericLinkProvider
in package
implements EvolvableLinkProviderInterface

Table of Contents

Interfaces

EvolvableLinkProviderInterface
An evolvable link provider value object.

Properties

$links  : array<string|int, LinkInterface>

Methods

__construct()  : mixed
getLinks()  : array<string|int, mixed>
{@inheritdoc}
getLinksByRel()  : array<string|int, mixed>
{@inheritdoc}
withLink()  : static
Returns an instance with the specified link included.
withoutLink()  : static
Returns an instance with the specifed link removed.

Properties

Methods

{@inheritdoc}

public getLinks() : array<string|int, mixed>
Return values
array<string|int, mixed>

getLinksByRel()

{@inheritdoc}

public getLinksByRel(string $rel) : array<string|int, mixed>
Parameters
$rel : string
Return values
array<string|int, mixed>

Returns an instance with the specified link included.

public withLink(LinkInterface $link) : static
Parameters
$link : LinkInterface

A link object that should be included in this collection.

Return values
static

        
On this page

Search results