Datastore/src/Query/GqlQuery.php
public function queryObject()
    {
        $bindingType = $this->options['bindingType'];

        $queryObj = [];
        $queryObj['queryString'] = $this->query;
        $queryObj['allowLiterals'] = (bool) $this->options['allowLiterals'];

        $bindings = $this->mapBindings($bindingType, $this->options['bindings']);
        if (!empty($bindings)) {
            $queryObj[$this->options['bindingType']] = $bindings;
        }

        return $queryObj;
    }
public function queryObject()
    {
        $bindingType = $this->options['bindingType'];

        $queryObj = [];
        $queryObj['queryString'] = $this->query;
        $queryObj['allowLiterals'] = (bool) $this->options['allowLiterals'];

        $bindings = $this->mapBindings($bindingType, $this->options['bindings']);
        if (!empty($bindings)) {
            $queryObj[$this->options['bindingType']] = $bindings;
        }

        return $queryObj;
    }
public function queryObject ( ) { $ bindingType = $ this -> options [ 'bindingType' ] ; $ queryObj = [ ] ; $ queryObj [ 'queryString' ] = $ this -> query ; $ queryObj [ 'allowLiterals' ] = ( bool ) $ this -> options [ 'allowLiterals' ] ; $ bindings = $ this -> mapBindings ( $ bindingType , $ this -> options [ 'bindings' ] ) ; if ( ! empty ( $ bindings ) ) { $ queryObj [ $ this -> options [ 'bindingType' ] ] = $ bindings ; } return $ queryObj ; }
Format the query for use in the API

This method is used internally to run queries and is not intended for use
outside the internal library API

@access private
@return array
Format the query for use in the API