@@ 37-46 (lines=10) @@ | ||
34 | /** |
|
35 | * {@inheritdoc} |
|
36 | */ |
|
37 | public function populateFromResponse(ResponseInterface $response) |
|
38 | { |
|
39 | parent::populateFromResponse($response); |
|
40 | ||
41 | $this->containerCount = $response->getHeaderLine('X-Account-Container-Count'); |
|
42 | $this->objectCount = $response->getHeaderLine('X-Account-Object-Count'); |
|
43 | $this->bytesUsed = $response->getHeaderLine('X-Account-Bytes-Used'); |
|
44 | $this->tempUrl = $response->getHeaderLine('X-Account-Meta-Temp-URL-Key'); |
|
45 | $this->metadata = $this->parseMetadata($response); |
|
46 | } |
|
47 | ||
48 | /** |
|
49 | * {@inheritdoc} |
@@ 49-58 (lines=10) @@ | ||
46 | /** |
|
47 | * {@inheritdoc} |
|
48 | */ |
|
49 | public function populateFromResponse(ResponseInterface $response) |
|
50 | { |
|
51 | parent::populateFromResponse($response); |
|
52 | ||
53 | $this->hash = $response->getHeaderLine('ETag'); |
|
54 | $this->contentLength = $response->getHeaderLine('Content-Length'); |
|
55 | $this->lastModified = $response->getHeaderLine('Last-Modified'); |
|
56 | $this->contentType = $response->getHeaderLine('Content-Type'); |
|
57 | $this->metadata = $this->parseMetadata($response); |
|
58 | } |
|
59 | ||
60 | /** |
|
61 | * Retrieves the public URI for this resource. |