Documentation

CallbackTransformer
in package
implements DataTransformerInterface

Table of Contents

Interfaces

DataTransformerInterface
Transforms a value between different representations.

Properties

$reverseTransform  : Closure
$transform  : Closure

Methods

__construct()  : mixed
reverseTransform()  : mixed
Transforms a value from the transformed representation to its original representation.
transform()  : mixed
Transforms a value from the original representation to a transformed representation.

Properties

Methods

__construct()

public __construct(callable $transform, callable $reverseTransform) : mixed
Parameters
$transform : callable
$reverseTransform : callable

reverseTransform()

Transforms a value from the transformed representation to its original representation.

public reverseTransform(mixed $data) : mixed
Parameters
$data : mixed

transform()

Transforms a value from the original representation to a transformed representation.

public transform(mixed $data) : mixed
Parameters
$data : mixed

        
On this page

Search results