ObjectListInfoV2.php 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. <?php
  2. namespace OSS\Model;
  3. /**
  4. * Class ObjectListInfoV2
  5. *
  6. * The class of return value of ListObjectsV2
  7. *
  8. * @package OSS\Model
  9. */
  10. class ObjectListInfoV2
  11. {
  12. /**
  13. * ObjectListInfoV2 constructor.
  14. *
  15. * @param string $bucketName
  16. * @param string $prefix
  17. * @param int $maxKeys
  18. * @param string $delimiter
  19. * @param null $isTruncated
  20. * @param array $objectList
  21. * @param array $prefixList
  22. * @param string $continuationToken
  23. * @param string $nextContinuationToken
  24. * @param string $startAfter
  25. * @param int $keyCount
  26. */
  27. public function __construct($bucketName, $prefix, $maxKeys, $delimiter, $isTruncated, array $objectList, array $prefixList, $continuationToken, $nextContinuationToken, $startAfter, $keyCount)
  28. {
  29. $this->bucketName = $bucketName;
  30. $this->prefix = $prefix;
  31. $this->maxKeys = $maxKeys;
  32. $this->delimiter = $delimiter;
  33. $this->isTruncated = $isTruncated;
  34. $this->objectList = $objectList;
  35. $this->prefixList = $prefixList;
  36. $this->continuationToken = $continuationToken;
  37. $this->nextContinuationToken = $nextContinuationToken;
  38. $this->startAfter = $startAfter;
  39. $this->keyCount = $keyCount;
  40. }
  41. /**
  42. * @return string
  43. */
  44. public function getBucketName()
  45. {
  46. return $this->bucketName;
  47. }
  48. /**
  49. * @return string
  50. */
  51. public function getPrefix()
  52. {
  53. return $this->prefix;
  54. }
  55. /**
  56. * @return int
  57. */
  58. public function getMaxKeys()
  59. {
  60. return $this->maxKeys;
  61. }
  62. /**
  63. * @return string
  64. */
  65. public function getDelimiter()
  66. {
  67. return $this->delimiter;
  68. }
  69. /**
  70. * @return mixed
  71. */
  72. public function getIsTruncated()
  73. {
  74. return $this->isTruncated;
  75. }
  76. /**
  77. * Get the ObjectInfo list.
  78. *
  79. * @return ObjectInfo[]
  80. */
  81. public function getObjectList()
  82. {
  83. return $this->objectList;
  84. }
  85. /**
  86. * Get the PrefixInfo list
  87. *
  88. * @return PrefixInfo[]
  89. */
  90. public function getPrefixList()
  91. {
  92. return $this->prefixList;
  93. }
  94. /**
  95. * @return string
  96. */
  97. public function getContinuationToken()
  98. {
  99. return $this->continuationToken;
  100. }
  101. /**
  102. * @return string
  103. */
  104. public function getNextContinuationToken()
  105. {
  106. return $this->nextContinuationToken;
  107. }
  108. /**
  109. * @return string
  110. */
  111. public function getStartAfter()
  112. {
  113. return $this->startAfter;
  114. }
  115. /**
  116. * @return int
  117. */
  118. public function getKeyCount()
  119. {
  120. return $this->keyCount;
  121. }
  122. private $bucketName = "";
  123. private $prefix = "";
  124. private $maxKeys = 0;
  125. private $delimiter = "";
  126. private $isTruncated = null;
  127. private $objectList = array();
  128. private $prefixList = array();
  129. private $nextContinuationToken = "";
  130. private $continuationToken = "";
  131. private $startAfter = "";
  132. private $keyCount = 0;
  133. }