This commit is contained in:
liut
2021-10-12 11:11:57 +08:00
parent ff0b4d5b12
commit 78fa827ef7
1277 changed files with 135174 additions and 3 deletions
@@ -0,0 +1,27 @@
<?php
namespace OSS\Result;
use OSS\Core\OssException;
/**
* Class InitiateBucketWormResult
* @package OSS\Result
*/
class InitiateBucketWormResult extends Result
{
/**
* Get the value of worm-id from response headers
*
* @return int
* @throws OssException
*/
protected function parseDataFromResponse()
{
$header = $this->rawResponse->header;
if (isset($header["x-oss-worm-id"])) {
return strval($header["x-oss-worm-id"]);
}
throw new OssException("cannot get worm-id");
}
}