private function iterate(InputInterface $input, array $map): \Generator
    {
        $values = $input->getValue($map[self::ITERATE_SOURCE], $map[self::ITERATE_ORIGIN]);
        if (empty($values) || !is_array($values)) {
            return [];
        }

        foreach (array_keys($values) as $key) {
            yield $key => $map[self::ORIGIN] . '.' . $key;
        }
    }
private function iterate(InputInterface $input, array $map): \Generator
    {
        $values = $input->getValue($map[self::ITERATE_SOURCE], $map[self::ITERATE_ORIGIN]);
        if (empty($values) || !is_array($values)) {
            return [];
        }

        foreach (array_keys($values) as $key) {
            yield $key => $map[self::ORIGIN] . '.' . $key;
        }
    }
private function iterate ( InputInterface $ input , array $ map ) : \ Generator { $ values = $ input -> getValue ( $ map [ self :: ITERATE_SOURCE ] , $ map [ self :: ITERATE_ORIGIN ] ) ; if ( empty ( $ values ) || ! is_array ( $ values ) ) { return [ ] ; } foreach ( array_keys ( $ values ) as $ key ) { yield $ key => $ map [ self :: ORIGIN ] . '.' . $ key ; } }
Create set of origins and prefixed for a nested array of models.

@param InputInterface $input
@param array          $map

@return \Generator
Create set of origins and prefixed for a nested array of models .