ObjectListInfo.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. namespace OSS\Model;
  3. /**
  4. * Class ObjectListInfo
  5. *
  6. * The class of return value of ListObjects
  7. *
  8. * @package OSS\Model
  9. * @link http://help.aliyun.com/document_detail/oss/api-reference/bucket/GetBucket.html
  10. */
  11. class ObjectListInfo
  12. {
  13. /**
  14. * ObjectListInfo constructor.
  15. *
  16. * @param string $bucketName
  17. * @param string $prefix
  18. * @param string $marker
  19. * @param string $nextMarker
  20. * @param string $maxKeys
  21. * @param string $delimiter
  22. * @param null $isTruncated
  23. * @param array $objectList
  24. * @param array $prefixList
  25. */
  26. public function __construct($bucketName, $prefix, $marker, $nextMarker, $maxKeys, $delimiter, $isTruncated, array $objectList, array $prefixList)
  27. {
  28. $this->bucketName = $bucketName;
  29. $this->prefix = $prefix;
  30. $this->marker = $marker;
  31. $this->nextMarker = $nextMarker;
  32. $this->maxKeys = $maxKeys;
  33. $this->delimiter = $delimiter;
  34. $this->isTruncated = $isTruncated;
  35. $this->objectList = $objectList;
  36. $this->prefixList = $prefixList;
  37. }
  38. /**
  39. * @return string
  40. */
  41. public function getBucketName()
  42. {
  43. return $this->bucketName;
  44. }
  45. /**
  46. * @return string
  47. */
  48. public function getPrefix()
  49. {
  50. return $this->prefix;
  51. }
  52. /**
  53. * @return string
  54. */
  55. public function getMarker()
  56. {
  57. return $this->marker;
  58. }
  59. /**
  60. * @return int
  61. */
  62. public function getMaxKeys()
  63. {
  64. return $this->maxKeys;
  65. }
  66. /**
  67. * @return string
  68. */
  69. public function getDelimiter()
  70. {
  71. return $this->delimiter;
  72. }
  73. /**
  74. * @return mixed
  75. */
  76. public function getIsTruncated()
  77. {
  78. return $this->isTruncated;
  79. }
  80. /**
  81. * Get the ObjectInfo list.
  82. *
  83. * @return ObjectInfo[]
  84. */
  85. public function getObjectList()
  86. {
  87. return $this->objectList;
  88. }
  89. /**
  90. * Get the PrefixInfo list
  91. *
  92. * @return PrefixInfo[]
  93. */
  94. public function getPrefixList()
  95. {
  96. return $this->prefixList;
  97. }
  98. /**
  99. * @return string
  100. */
  101. public function getNextMarker()
  102. {
  103. return $this->nextMarker;
  104. }
  105. private $bucketName = "";
  106. private $prefix = "";
  107. private $marker = "";
  108. private $nextMarker = "";
  109. private $maxKeys = 0;
  110. private $delimiter = "";
  111. private $isTruncated = null;
  112. private $objectList = array();
  113. private $prefixList = array();
  114. }