更新
This commit is contained in:
30
vendor/aliyuncs/oss-sdk-php/src/OSS/Result/GetLocationResult.php
vendored
Normal file
30
vendor/aliyuncs/oss-sdk-php/src/OSS/Result/GetLocationResult.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
namespace OSS\Result;
|
||||
|
||||
use OSS\Core\OssException;
|
||||
|
||||
/**
|
||||
* Class GetLocationResult getBucketLocation interface returns the result class, encapsulated
|
||||
* The returned xml data is parsed
|
||||
*
|
||||
* @package OSS\Result
|
||||
*/
|
||||
class GetLocationResult extends Result
|
||||
{
|
||||
|
||||
/**
|
||||
* Parse data from response
|
||||
*
|
||||
* @return string
|
||||
* @throws OssException
|
||||
*/
|
||||
protected function parseDataFromResponse()
|
||||
{
|
||||
$content = $this->rawResponse->body;
|
||||
if (empty($content)) {
|
||||
throw new OssException("body is null");
|
||||
}
|
||||
$xml = simplexml_load_string($content);
|
||||
return $xml;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user