trait UpdatableTrait

UpdatableTrait.

This trait is supposed to be applied to resources that can be updated.

Properties

Client $client
SystemProperties $sys

Methods

mixed
asRequestBody()

Returns the resource in the form of request body.

update()

Updates the current resource.

Details

at line 33
abstract 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 38
update()

Updates the current resource.