public function collectLocations($locationIndex) { $this->response = $this->client->getLastResponse(); $this->locations[$locationIndex] = $this->response->getHeader('X-Location'); }