BaseResource
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.
Details
at line 37
getId()
{@inheritdoc}
at line 45
getType()
{@inheritdoc}
at line 53
asLink()
{@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.
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.