@@ 38-49 (lines=12) @@ | ||
35 | /** |
|
36 | * {@inheritdoc} |
|
37 | */ |
|
38 | public function populateFromResponse(ResponseInterface $response): ResourceInterface |
|
39 | { |
|
40 | parent::populateFromResponse($response); |
|
41 | ||
42 | $this->containerCount = $response->getHeaderLine('X-Account-Container-Count'); |
|
43 | $this->objectCount = $response->getHeaderLine('X-Account-Object-Count'); |
|
44 | $this->bytesUsed = $response->getHeaderLine('X-Account-Bytes-Used'); |
|
45 | $this->tempUrl = $response->getHeaderLine('X-Account-Meta-Temp-URL-Key'); |
|
46 | $this->metadata = $this->parseMetadata($response); |
|
47 | ||
48 | return $this; |
|
49 | } |
|
50 | ||
51 | /** |
|
52 | * {@inheritdoc} |
@@ 65-74 (lines=10) @@ | ||
62 | * |
|
63 | * @return $this |
|
64 | */ |
|
65 | private function populateHeaders(ResponseInterface $response): self |
|
66 | { |
|
67 | $this->hash = $response->getHeaderLine('ETag'); |
|
68 | $this->contentLength = $response->getHeaderLine('Content-Length'); |
|
69 | $this->lastModified = $response->getHeaderLine('Last-Modified'); |
|
70 | $this->contentType = $response->getHeaderLine('Content-Type'); |
|
71 | $this->metadata = $this->parseMetadata($response); |
|
72 | ||
73 | return $this; |
|
74 | } |
|
75 | ||
76 | /** |
|
77 | * Retrieves the public URI for this resource. |