新增
This commit is contained in:
+26
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace OSS\Result;
|
||||
|
||||
|
||||
use OSS\Model\VersioningConfig;
|
||||
|
||||
/**
|
||||
* Class GetBucketVersioningResult
|
||||
* @package OSS\Result
|
||||
*/
|
||||
class GetBucketVersioningResult extends Result
|
||||
{
|
||||
/**
|
||||
* Parse the VersioningConfig object from the response
|
||||
*
|
||||
* @return VersioningConfig
|
||||
*/
|
||||
protected function parseDataFromResponse()
|
||||
{
|
||||
$content = $this->rawResponse->body;
|
||||
$config = new VersioningConfig();
|
||||
$config->parseFromXml($content);
|
||||
return $config->getStatus();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user