Define the json respresentation of the object.
public jsonSerialize ( ) : array | ||
return | array |
public function testJsonSerialize() { $query = new GqlQuery($this->mapper, 'SELECT * FROM foo'); $this->assertEquals($query->jsonSerialize(), $query->queryObject()); }