array_map(fn (ProductionStepSummary $step): OrderStep => new OrderStep( $step->machineId, $step->durationQuarters, $step->workTypeId, array_map(fn (array $material): array => ['stockItemId' => $material['stockItemId'], 'quantityMilli' => $material['quantityMilli']], $step->materials), ), $steps), $this->processes->processesOf($productIds), ); } }