new-admin-api/vendor/async-aws/s3/src/Result/PutObjectAclOutput.php

30 lines
587 B
PHP

<?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;
}
}