DataTransformerChain
class DataTransformerChain implements DataTransformerInterface
Passes a value through multiple value transformers.
Properties
protected | $transformers |
Methods
Uses the given value transformers to transform values.
Passes the value through the transform() method of all nested transformers.
Passes the value through the reverseTransform() method of all nested transformers.
No description
Details
mixed
transform(mixed $value)
Passes the value through the transform() method of all nested transformers.
The transformers receive the value in the same order as they were passed to the constructor. Each transformer receives the result of the previous transformer as input. The output of the last transformer is returned by this method.
mixed
reverseTransform(mixed $value)
Passes the value through the reverseTransform() method of all nested transformers.
The transformers receive the value in the reverse order as they were passed to the constructor. Each transformer receives the result of the previous transformer as input. The output of the last transformer is returned by this method.