public function getChanges()
    {
        $response = $this->client->request('GET', "/{$this->name}/_changes");

        if (200 !== $response->getStatusCode()) {
            throw new Exception('Request wasn\'t successfull');
        }

        return JSONEncoder::decode((string) $response->getBody());
    }
public function getChanges()
    {
        $response = $this->client->request('GET', "/{$this->name}/_changes");

        if (200 !== $response->getStatusCode()) {
            throw new Exception('Request wasn\'t successfull');
        }

        return JSONEncoder::decode((string) $response->getBody());
    }
public function getChanges ( ) { $ response = $ this -> client -> request ( 'GET' , "/{$this->name}/_changes" ) ; if ( 200 !== $ response -> getStatusCode ( ) ) { throw new Exception ( 'Request wasn\'t successfull' ) ; } return JSONEncoder :: decode ( ( string ) $ response -> getBody ( ) ) ; }
Return informations about the last changes from the database.

@throws \RuntimeException If the request was not successfull

@return array
Return informations about the last changes from the database .