| @@ 37-48 (lines=12) @@ | ||
| 34 | /** |
|
| 35 | * {@inheritdoc} |
|
| 36 | */ |
|
| 37 | public function populateFromResponse(ResponseInterface $response): self |
|
| 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 | return $this; |
|
| 48 | } |
|
| 49 | ||
| 50 | /** |
|
| 51 | * {@inheritdoc} |
|
| @@ 64-73 (lines=10) @@ | ||
| 61 | * |
|
| 62 | * @return $this |
|
| 63 | */ |
|
| 64 | private function populateHeaders(ResponseInterface $response): self |
|
| 65 | { |
|
| 66 | $this->hash = $response->getHeaderLine('ETag'); |
|
| 67 | $this->contentLength = $response->getHeaderLine('Content-Length'); |
|
| 68 | $this->lastModified = $response->getHeaderLine('Last-Modified'); |
|
| 69 | $this->contentType = $response->getHeaderLine('Content-Type'); |
|
| 70 | $this->metadata = $this->parseMetadata($response); |
|
| 71 | ||
| 72 | return $this; |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * Retrieves the public URI for this resource. |
|