class UuidToStringTransformer implementsDataTransformerInterface

Transforms between a UUID string and a Uuid object.

Methods

mixed
transform(mixed$value)

Transforms a Uuid object into a string.

mixed
reverseTransform(mixed$value)

Transforms a UUID string into a Uuid object.

Details

mixed transform(mixed$value)

Transforms a Uuid object into a string.

Parameters

mixed $value The value in the original representation

Return Value

mixed

Exceptions

TransformationFailedException If the given value is not a Uuid object

mixed reverseTransform(mixed$value)

Transforms a UUID string into a Uuid object.

Parameters

mixed $value The value in the transformed representation

Return Value

mixed

Exceptions

TransformationFailedException If the given value is not a string, or could not be transformed