You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.2 KiB
78 lines
1.2 KiB
1 year ago
|
<?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;
|
||
|
|
||
|
}
|