multi-store/vendor/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketEncryptionResult.php
2024-05-31 09:27:37 +08:00

27 lines
547 B
PHP

<?php
namespace OSS\Result;
use OSS\Model\ServerSideEncryptionConfig;
/**
* Class GetBucketEncryptionResult
* @package OSS\Result
*/
class GetBucketEncryptionResult extends Result
{
/**
* Parse the ServerSideEncryptionConfig object from the response
*
* @return ServerSideEncryptionConfig
*/
protected function parseDataFromResponse()
{
$content = $this->rawResponse->body;
$config = new ServerSideEncryptionConfig();
$config->parseFromXml($content);
return $config;
}
}