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.
36 lines
780 B
36 lines
780 B
<?php
|
|
|
|
namespace OSS\Model;
|
|
|
|
/**
|
|
* Class PrefixInfo
|
|
*
|
|
* listObjects接口中返回的Prefix列表中的类
|
|
* listObjects接口返回数据中包含两个Array:
|
|
* 一个是拿到的Object列表【可以理解成对应文件系统中的文件列表】
|
|
* 一个是拿到的Prefix列表【可以理解成对应文件系统中的目录列表】
|
|
*
|
|
* @package OSS\Model
|
|
* @link http://help.aliyun.com/document_detail/oss/api-reference/bucket/GetBucket.html
|
|
*/
|
|
class PrefixInfo
|
|
{
|
|
/**
|
|
* PrefixInfo constructor.
|
|
* @param string $prefix
|
|
*/
|
|
public function __construct($prefix)
|
|
{
|
|
$this->prefix = $prefix;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getPrefix()
|
|
{
|
|
return $this->prefix;
|
|
}
|
|
|
|
private $prefix;
|
|
} |