class Link implements JsonSerializable

A link encodes a reference to a resource.

Methods

__construct(string $id, string $linkType)

Link constructor.

string
getId()

Get the ID of the referenced resource

string
getLinkType()

Get the type of the Link.

object
jsonSerialize()

Returns an object to be used by json_encode to serialize objects of this class.

Details

at line 30
__construct(string $id, string $linkType)

Link constructor.

Parameters

string $id
string $linkType

at line 41
string getId()

Get the ID of the referenced resource

Return Value

string

at line 55
string getLinkType()

Get the type of the Link.

Possible values are: - Asset - Entry

Return Value

string

at line 67
object jsonSerialize()

Returns an object to be used by json_encode to serialize objects of this class.

Return Value

object

See also

http://php.net/manual/en/jsonserializable.jsonserialize.php JsonSerializable::jsonSerialize