初始化仓库

This commit is contained in:
wangxiaowei
2025-04-22 14:09:52 +08:00
commit 8b100110bb
5155 changed files with 664201 additions and 0 deletions

View File

@ -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");
}
}