BaseResource
class BaseResource implements ResourceInterface
BaseResource class.
Properties
protected SystemProperties | $sys | ||
protected Client|null | $client |
Methods
initialize(string $type, array $sys = [])
Initialize system properties.
getSystemProperties()
{@inheritdoc}
getId()
{@inheritdoc}
getType()
{@inheritdoc}
asLink()
{@inheritdoc}
mixed
asRequestBody()
Returns the resource in the form of request body.
Details
at line 39
protected
initialize(string $type, array $sys = [])
Initialize system properties.
at line 48
getSystemProperties()
{@inheritdoc}
at line 56
getId()
{@inheritdoc}
at line 64
getType()
{@inheritdoc}
at line 72
asLink()
{@inheritdoc}
at line 80
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 98
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.