class BaseResource implements ResourceInterface

BaseResource class.

Properties

protected SystemPropertiesInterface $sys
protected Client|null $client

Methods

getId()

{@inheritdoc}

getType()

{@inheritdoc}

asLink()

{@inheritdoc}

mixed
asRequestBody()

Returns the resource in the form of request body.

setClient(Client $client)

Sets the current Client object instance.

Details

at line 37
getId()

{@inheritdoc}

at line 45
getType()

{@inheritdoc}

{@inheritdoc}

at line 61
mixed asRequestBody()

Returns the resource in the form of request body.

This can differ from regular serialization, as some fields may not be present in the request payload.

Return Value

mixed

at line 77
BaseResource setClient(Client $client)

Sets the current Client object instance.

This is done automatically when performing API calls, so it shouldn't be used manually.

Parameters

Client $client

Return Value

BaseResource