更新
This commit is contained in:
30
vendor/aliyuncs/oss-sdk-php/src/OSS/Result/CopyObjectResult.php
vendored
Normal file
30
vendor/aliyuncs/oss-sdk-php/src/OSS/Result/CopyObjectResult.php
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
<?php
|
||||
|
||||
namespace OSS\Result;
|
||||
|
||||
|
||||
/**
|
||||
* Class CopyObjectResult
|
||||
* @package OSS\Result
|
||||
*/
|
||||
class CopyObjectResult extends Result
|
||||
{
|
||||
/**
|
||||
* @return array()
|
||||
*/
|
||||
protected function parseDataFromResponse()
|
||||
{
|
||||
$body = $this->rawResponse->body;
|
||||
$xml = simplexml_load_string($body);
|
||||
$result = array();
|
||||
|
||||
if (isset($xml->LastModified)) {
|
||||
$result[] = $xml->LastModified;
|
||||
}
|
||||
if (isset($xml->ETag)) {
|
||||
$result[] = $xml->ETag;
|
||||
}
|
||||
|
||||
return array_merge($result, $this->rawResponse->header);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user