19declare(strict_types=1);
26use InvalidArgumentException;
49 if (!is_array($from)) {
50 throw new InvalidArgumentException(__METHOD__ .
" argument is not an array.");
53 return array_map(
function (
$a) {
54 return $this->trafo->transform(
$a);
Adds to any array keys for each value.
__construct(Transformation $trafo)
transform($from)
@inheritDoc
trait DeriveInvokeFromTransform
trait DeriveApplyToFromTransform
$a
thx to https://mlocati.github.io/php-cs-fixer-configurator for the examples