123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126 |
- <?php
- namespace OSS\Model;
- /**
- * Class ObjectListInfo
- *
- * ListObjects接口返回数据
- *
- * @package OSS\Model
- * @link http://help.aliyun.com/document_detail/oss/api-reference/bucket/GetBucket.html
- */
- class ObjectListInfo
- {
- /**
- * ObjectListInfo constructor.
- *
- * @param string $bucketName
- * @param string $prefix
- * @param string $marker
- * @param string $nextMarker
- * @param string $maxKeys
- * @param string $delimiter
- * @param null $isTruncated
- * @param array $objectList
- * @param array $prefixList
- */
- public function __construct($bucketName, $prefix, $marker, $nextMarker, $maxKeys, $delimiter, $isTruncated, array $objectList, array $prefixList)
- {
- $this->bucketName = $bucketName;
- $this->prefix = $prefix;
- $this->marker = $marker;
- $this->nextMarker = $nextMarker;
- $this->maxKeys = $maxKeys;
- $this->delimiter = $delimiter;
- $this->isTruncated = $isTruncated;
- $this->objectList = $objectList;
- $this->prefixList = $prefixList;
- }
- /**
- * @return string
- */
- public function getBucketName()
- {
- return $this->bucketName;
- }
- /**
- * @return string
- */
- public function getPrefix()
- {
- return $this->prefix;
- }
- /**
- * @return string
- */
- public function getMarker()
- {
- return $this->marker;
- }
- /**
- * @return int
- */
- public function getMaxKeys()
- {
- return $this->maxKeys;
- }
- /**
- * @return string
- */
- public function getDelimiter()
- {
- return $this->delimiter;
- }
- /**
- * @return mixed
- */
- public function getIsTruncated()
- {
- return $this->isTruncated;
- }
- /**
- * 返回ListObjects接口返回数据中的ObjectInfo列表
- *
- * @return ObjectInfo[]
- */
- public function getObjectList()
- {
- return $this->objectList;
- }
- /**
- * 返回ListObjects接口返回数据中的PrefixInfo列表
- *
- * @return PrefixInfo[]
- */
- public function getPrefixList()
- {
- return $this->prefixList;
- }
- /**
- * @return string
- */
- public function getNextMarker()
- {
- return $this->nextMarker;
- }
- private $bucketName = "";
- private $prefix = "";
- private $marker = "";
- private $nextMarker = "";
- private $maxKeys = 0;
- private $delimiter = "";
- private $isTruncated = null;
- private $objectList = array();
- private $prefixList = array();
- }
|