You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
438 B
23 lines
438 B
<?php
|
|
|
|
namespace OSS\Result;
|
|
use OSS\Model\TransferAccelerationConfig;
|
|
|
|
/**
|
|
* Class GetBucketTransferAccelerationResult
|
|
* @package OSS\Result
|
|
*/
|
|
class GetBucketTransferAccelerationResult extends Result
|
|
{
|
|
/**
|
|
* @return bool
|
|
*/
|
|
protected function parseDataFromResponse()
|
|
{
|
|
$content = $this->rawResponse->body;
|
|
$config = new TransferAccelerationConfig();
|
|
$config->parseFromXml($content);
|
|
return $config->getEnabled();
|
|
}
|
|
}
|