19 declare(strict_types=1);
43 foreach ($transformations as $transformation) {
45 $transformationClassName = Transformation::class;
48 sprintf(
'The array MUST contain only "%s" instances', $transformationClassName),
49 'not_a_transformation',
50 $transformationClassName
54 $this->transformationStrategies = $transformations;
63 foreach ($this->transformationStrategies as $strategy) {
64 $results[] = $strategy->transform($from);
trait DeriveInvokeFromTransform
array $transformationStrategies
trait DeriveApplyToFromTransform
__construct(array $transformations)