19 declare(strict_types=1);
41 foreach ($transformations as $transformation) {
43 $transformationClassName = Transformation::class;
46 sprintf(
'The array MUST contain only "%s" instances', $transformationClassName),
47 'not_a_transformation',
48 $transformationClassName
52 $this->transformationStrategies = $transformations;
61 foreach ($this->transformationStrategies as $strategy) {
62 $result = $strategy->transform($result);
trait DeriveInvokeFromTransform
trait DeriveApplyToFromTransform
__construct(array $transformations)
array $transformationStrategies