29 lines
534 B
PHP
29 lines
534 B
PHP
<?php
|
|
|
|
namespace AsyncAws\S3\Result;
|
|
|
|
use AsyncAws\Core\Response;
|
|
use AsyncAws\Core\Result;
|
|
|
|
class CreateBucketOutput extends Result
|
|
{
|
|
/**
|
|
* A forward slash followed by the name of the bucket.
|
|
*/
|
|
private $location;
|
|
|
|
public function getLocation(): ?string
|
|
{
|
|
$this->initialize();
|
|
|
|
return $this->location;
|
|
}
|
|
|
|
protected function populateResult(Response $response): void
|
|
{
|
|
$headers = $response->getHeaders();
|
|
|
|
$this->location = $headers['location'][0] ?? null;
|
|
}
|
|
}
|