PutObjectAclOutput.php 587 B

1234567891011121314151617181920212223242526272829
  1. <?php
  2. namespace AsyncAws\S3\Result;
  3. use AsyncAws\Core\Response;
  4. use AsyncAws\Core\Result;
  5. use AsyncAws\S3\Enum\RequestCharged;
  6. class PutObjectAclOutput extends Result
  7. {
  8. private $requestCharged;
  9. /**
  10. * @return RequestCharged::*|null
  11. */
  12. public function getRequestCharged(): ?string
  13. {
  14. $this->initialize();
  15. return $this->requestCharged;
  16. }
  17. protected function populateResult(Response $response): void
  18. {
  19. $headers = $response->getHeaders();
  20. $this->requestCharged = $headers['x-amz-request-charged'][0] ?? null;
  21. }
  22. }