protected function _normalizeArray($value)
    {
        if ($value instanceof stdClass) {
            $value = (array) $value;
        }

        if (is_array($value)) {
            return $value;
        }

        if (!($value instanceof Traversable)) {
            throw $this->_createInvalidArgumentException($this->__('Not an iterable'), null, null, $value);
        }

        $value = iterator_to_array($value, true);

        return $value;
    }
protected function _normalizeArray($value)
    {
        if ($value instanceof stdClass) {
            $value = (array) $value;
        }

        if (is_array($value)) {
            return $value;
        }

        if (!($value instanceof Traversable)) {
            throw $this->_createInvalidArgumentException($this->__('Not an iterable'), null, null, $value);
        }

        $value = iterator_to_array($value, true);

        return $value;
    }
protected function _normalizeArray ( $ value ) { if ( $ value instanceof stdClass ) { $ value = ( array ) $ value ; } if ( is_array ( $ value ) ) { return $ value ; } if ( ! ( $ value instanceof Traversable ) ) { throw $ this -> _createInvalidArgumentException ( $ this -> __ ( 'Not an iterable' ) , null , null , $ value ) ; } $ value = iterator_to_array ( $ value , true ) ; return $ value ; }
Normalizes a value into an array.

@since [*next-version*]

@param array|stdClass|Traversable $value The value to normalize.

@throws InvalidArgumentException If value cannot be normalized.

@return array The normalized value.
Normalizes a value into an array .