interface TransformableData implements JsonSerializable, Jsonable, Arrayable

Methods

string
toJson(int $options = 0)

Convert the data object to its JSON representation.

array
toArray()

Get the data object as an array.

array
transform(TransformationContextFactory|TransformationContext|null $transformationContext = null)

Transform the data object to an array.

array
all()

Get all visible data properties.

array
jsonSerialize()

Get the data that should be serialized to JSON.

Details

at line 38
string toJson(int $options = 0)

Convert the data object to its JSON representation.

Parameters

int $options

Return Value

string

at line 33
array toArray()

Get the data object as an array.

Return Value

array

at line 21
array transform(TransformationContextFactory|TransformationContext|null $transformationContext = null)

Transform the data object to an array.

Parameters

TransformationContextFactory|TransformationContext|null $transformationContext

Return Value

array

at line 28
array all()

Get all visible data properties.

Return Value

array

at line 43
array jsonSerialize()

Get the data that should be serialized to JSON.

Return Value

array