初始化仓库
This commit is contained in:
26
vendor/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketEncryptionResult.php
vendored
Normal file
26
vendor/aliyuncs/oss-sdk-php/src/OSS/Result/GetBucketEncryptionResult.php
vendored
Normal file
@ -0,0 +1,26 @@
|
||||
<?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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user