src/NormalizeIterableCapableTrait.php
protected function _normalizeIterable($iterable)
    {
        if (
                is_array($iterable) ||
                $iterable instanceof Traversable ||
                $iterable instanceof stdClass
        ) {
            return $iterable;
        }

        throw $this->_createInvalidArgumentException(
            $this->__('Invalid iterable'),
            null,
            null,
            $iterable
        );
    }
protected function _normalizeIterable($iterable)
    {
        if (
                is_array($iterable) ||
                $iterable instanceof Traversable ||
                $iterable instanceof stdClass
        ) {
            return $iterable;
        }

        throw $this->_createInvalidArgumentException(
            $this->__('Invalid iterable'),
            null,
            null,
            $iterable
        );
    }
protected function _normalizeIterable ( $ iterable ) { if ( is_array ( $ iterable ) || $ iterable instanceof Traversable || $ iterable instanceof stdClass ) { return $ iterable ; } throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Invalid iterable' ) , null , null , $ iterable ) ; }
Normalizes an iterable.

Makes sure that the return value can be iterated over.

@since [*next-version*]

@param mixed $iterable The iterable to normalize.

@throws InvalidArgumentException If the iterable could not be normalized.

@return array|Traversable|stdClass The normalized iterable.
Normalizes an iterable .