| 1234567891011121314151617181920212223242526272829 |
- <?php
- namespace AsyncAws\S3\Result;
- use AsyncAws\Core\Response;
- use AsyncAws\Core\Result;
- use AsyncAws\S3\Enum\RequestCharged;
- class PutObjectAclOutput extends Result
- {
- private $requestCharged;
- /**
- * @return RequestCharged::*|null
- */
- public function getRequestCharged(): ?string
- {
- $this->initialize();
- return $this->requestCharged;
- }
- protected function populateResult(Response $response): void
- {
- $headers = $response->getHeaders();
- $this->requestCharged = $headers['x-amz-request-charged'][0] ?? null;
- }
- }
|