This commit is contained in:
yyh931018@qq.com
2022-09-08 17:11:02 +08:00
parent 1b0c8f4196
commit d1f6cbd57e
75 changed files with 9148 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace OSS\Result;
/**
* Class DeleteObjectsResult
* @package OSS\Result
*/
class DeleteObjectsResult extends Result
{
/**
* @return array()
*/
protected function parseDataFromResponse()
{
$body = $this->rawResponse->body;
$xml = simplexml_load_string($body);
$objects = array();
if (isset($xml->Deleted)) {
foreach($xml->Deleted as $deleteKey)
$objects[] = $deleteKey->Key;
}
return $objects;
}
}