$data
$data : array
An object that represents a single Canvas object, providing both object- style access (obj->key) and array-style access (array[key]).
CanvasObject objects are immutable, so attempts to change their underlying data will result in exceptions.
A CanvasObject is returned from any API request for which the endpoint ends with a specific ID number (e.g. http://example.com/api/v1/accounts/1/users/1).
__unset(string $key) : void
Unset a property
string | $key |
IMMUTABLE All calls to this method will cause an exception
None found |
offsetExists(integer|string $offset) : boolean
Whether an offset exists
integer|string | $offset |
None found |
offsetGet(integer|string $offset) : mixed|null
Offset to retrieve
integer|string | $offset |
None found |
offsetSet(integer|string $offset, mixed $value) : void
Assign a value to the specified offset
integer|string | $offset | |
mixed | $value |
IMMUTABLE All calls to this method will cause an exception
None found |
offsetUnset(integer|string $offset) : void
Unset an offset
integer|string | $offset |
IMMUTABLE All calls to this method will cause an exception
None found |
None found |
unserialize(string $data) : void
Construct a CanvasObject from its string representation
string | $data |
None found |