update
This commit is contained in:
78
addons/alioss/library/OSS/Model/BucketInfo.php
Normal file
78
addons/alioss/library/OSS/Model/BucketInfo.php
Normal file
@@ -0,0 +1,78 @@
|
||||
<?php
|
||||
|
||||
namespace OSS\Model;
|
||||
|
||||
|
||||
/**
|
||||
* Bucket信息,ListBuckets接口返回数据
|
||||
*
|
||||
* Class BucketInfo
|
||||
* @package OSS\Model
|
||||
*/
|
||||
class BucketInfo
|
||||
{
|
||||
/**
|
||||
* BucketInfo constructor.
|
||||
*
|
||||
* @param string $location
|
||||
* @param string $name
|
||||
* @param string $createDate
|
||||
*/
|
||||
public function __construct($location, $name, $createDate)
|
||||
{
|
||||
$this->location = $location;
|
||||
$this->name = $name;
|
||||
$this->createDate = $createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* 得到bucket所在的region
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getLocation()
|
||||
{
|
||||
return $this->location;
|
||||
}
|
||||
|
||||
/**
|
||||
* 得到bucket的名称
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getName()
|
||||
{
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
/**
|
||||
* 得到bucket的创建时间
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function getCreateDate()
|
||||
{
|
||||
return $this->createDate;
|
||||
}
|
||||
|
||||
/**
|
||||
* bucket所在的region
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $location;
|
||||
/**
|
||||
* bucket的名称
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $name;
|
||||
|
||||
/**
|
||||
* bucket的创建事件
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
private $createDate;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user