jsonSerialize() public méthode

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