src/Utils/ProcessManager.php
private function getIterator($value)
    {
        if ($value instanceof \Iterator) {

            return $value;
        }

        if (is_array($value)) {

            return new \ArrayIterator($value);
        }

        return new \ArrayIterator([$value]);
    }
private function getIterator($value)
    {
        if ($value instanceof \Iterator) {

            return $value;
        }

        if (is_array($value)) {

            return new \ArrayIterator($value);
        }

        return new \ArrayIterator([$value]);
    }
private function getIterator ( $ value ) { if ( $ value instanceof \ Iterator ) { return $ value ; } if ( is_array ( $ value ) ) { return new \ ArrayIterator ( $ value ) ; } return new \ ArrayIterator ( [ $ value ] ) ; }
Returns an iterator for the given value.

@param mixed $value

@return \Iterator
Returns an iterator for the given value .