<?php array_map(?callable $callback, array $array, array ...$arrays): array
<?php public function solutions(): array { return array_map(function (Solution $solution) { $transformerClass = $this->solutionTransformerClass; $transformer = new $transformerClass($solution); return ($transformer)->toArray(); }, $this->solutions); }