mirror of
https://gitee.com/niucloud-team/niucloud-admin.git
synced 2026-04-05 20:20:13 +00:00
31 lines
592 B
PHP
31 lines
592 B
PHP
<?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);
|
|
}
|
|
}
|