ObjectVersionListInfo.php 3.4 KB

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