Firestore/src/ValueMapper.php
public function encodeValues(array $fields)
    {
        $output = [];

        foreach ($fields as $key => $val) {
            $output[$key] = $this->encodeValue($val);
        }

        return $output;
    }
public function encodeValues(array $fields)
    {
        $output = [];

        foreach ($fields as $key => $val) {
            $output[$key] = $this->encodeValue($val);
        }

        return $output;
    }
public function encodeValues ( array $ fields ) { $ output = [ ] ; foreach ( $ fields as $ key => $ val ) { $ output [ $ key ] = $ this -> encodeValue ( $ val ) ; } return $ output ; }
Convert a PHP array containing google-cloud-php and simple types to an
array ready to be sent to Firestore.

@param array $fields A list of fields to encode.
@return array
Convert a PHP array containing google - cloud - php and simple types to an array ready to be sent to Firestore .