protected function onData($data)
    {
        if (is_null($this->totalRecordCount)) {
            $this->totalRecordCount = $data->total_record_count;
        }

        if (!isset($data->{$this->responseKey})) {
            return;
        }

        foreach ($data->{$this->responseKey} as $result) {
            $this->resources[] = $this->convertToResource($result);
        }
    }