private function storeResponse($done, $isAsynchronous = true)
{
$key = $this->getKey($done['handle']);
$this->stopTimer($key, $done);
if ($isAsynchronous) {
$this->responses[$key]['data'] = curl_multi_getcontent($done['handle']);
} else {
$this->responses[$key]['data'] = curl_exec($done['handle']);
}
$this->responses[$key]['response'] = $this->responses[$key]['data'];
foreach ($this->properties as $name => $const) {
$this->responses[$key][$name] = curl_getinfo($done['handle'], $const);
}
if ($isAsynchronous) {
curl_multi_remove_handle($this->mc, $done['handle']);
}
curl_close($done['handle']);
}