class Link implements JsonSerializable

Link class.

A Link in Contentful represents a reference to any kind of resource.

Methods

__construct(string $linkId, string $linkType)

Link constructor.

string
getId()

Get the ID of the referenced resource.

string
getLinkType()

Get the type of the Link.

jsonSerialize()

{@inheritdoc}

Details

at line 35
__construct(string $linkId, string $linkType)

Link constructor.

Parameters

string $linkId
string $linkType

at line 46
string getId()

Get the ID of the referenced resource.

Return Value

string

at line 56
string getLinkType()

Get the type of the Link.

Return Value

string

at line 64
jsonSerialize()

{@inheritdoc}