class CollectionToArrayTransformer implementsDataTransformerInterface

Methods

mixed
transform(mixed$collection)

Transforms a collection into an array.

mixed
reverseTransform(mixed$array)

Transforms an array into a collection.

Details

mixed transform(mixed$collection)

Transforms a collection into an array.

Parameters

mixed $collection

Return Value

mixed

Exceptions

TransformationFailedException

mixed reverseTransform(mixed$array)

Transforms an array into a collection.

Parameters

mixed $array

Return Value

mixed