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.

getId()

Get the ID of the referenced resource.

getLinkType()

Get the type of the Link.

jsonSerialize()

{@inheritdoc}

Details

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

Link constructor.

Parameters

string $linkId
string $linkType

at line 43
getId()

Get the ID of the referenced resource.

at line 51
getLinkType()

Get the type of the Link.

at line 59
jsonSerialize()

{@inheritdoc}