Google\Cloud\Datastore\Query\Query::queryObject PHP Method

queryObject() public method

This method is intended for use internally by the PHP client.
public queryObject ( ) : array
return array
    public function queryObject()
    {
        return array_filter($this->query);
    }

Usage Example

Example #1
0
 public function testConstructorOptions()
 {
     $query = new Query($this->mapper, ['query' => ['foo' => 'bar']]);
     $this->assertEquals($query->queryObject(), ['foo' => 'bar']);
 }