private function encodeArrayValue(array $value)
    {
        $out = [];
        foreach ($value as $item) {
            if (is_array($item) && !$this->isAssoc($item)) {
                throw new \RuntimeException('Nested array values are not permitted.');
            }

            $out[] = $this->encodeValue($item);
        }

        return ['arrayValue' => ['values' => $out]];
    }
private function encodeArrayValue(array $value)
    {
        $out = [];
        foreach ($value as $item) {
            if (is_array($item) && !$this->isAssoc($item)) {
                throw new \RuntimeException('Nested array values are not permitted.');
            }

            $out[] = $this->encodeValue($item);
        }

        return ['arrayValue' => ['values' => $out]];
    }
private function encodeArrayValue ( array $ value ) { $ out = [ ] ; foreach ( $ value as $ item ) { if ( is_array ( $ item ) && ! $ this -> isAssoc ( $ item ) ) { throw new \ RuntimeException ( 'Nested array values are not permitted.' ) ; } $ out [ ] = $ this -> encodeValue ( $ item ) ; } return [ 'arrayValue' => [ 'values' => $ out ] ] ; }
Encode a simple array as a Firestore array value.

@codingStandardsIgnoreStart
@param array $value
@return array [ArrayValue](https://firebase.google.com/docs/firestore/reference/rpc/google.firestore.v1beta1#google.firestore.v1beta1.ArrayValue)
@throws \RuntimeException If the array contains a nested array.
@codingStandardsIgnoreEnd
Encode a simple array as a Firestore array value .