ListPartsInfo.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php
  2. namespace OSS\Model;
  3. /**
  4. * Class ListPartsInfo
  5. * @package OSS\Model
  6. * @link http://help.aliyun.com/document_detail/oss/api-reference/multipart-upload/ListParts.html
  7. */
  8. class ListPartsInfo
  9. {
  10. /**
  11. * ListPartsInfo constructor.
  12. * @param string $bucket
  13. * @param string $key
  14. * @param string $uploadId
  15. * @param int $nextPartNumberMarker
  16. * @param int $maxParts
  17. * @param string $isTruncated
  18. * @param array $listPart
  19. */
  20. public function __construct($bucket, $key, $uploadId, $nextPartNumberMarker, $maxParts, $isTruncated, array $listPart)
  21. {
  22. $this->bucket = $bucket;
  23. $this->key = $key;
  24. $this->uploadId = $uploadId;
  25. $this->nextPartNumberMarker = $nextPartNumberMarker;
  26. $this->maxParts = $maxParts;
  27. $this->isTruncated = $isTruncated;
  28. $this->listPart = $listPart;
  29. }
  30. /**
  31. * @return string
  32. */
  33. public function getBucket()
  34. {
  35. return $this->bucket;
  36. }
  37. /**
  38. * @return string
  39. */
  40. public function getKey()
  41. {
  42. return $this->key;
  43. }
  44. /**
  45. * @return string
  46. */
  47. public function getUploadId()
  48. {
  49. return $this->uploadId;
  50. }
  51. /**
  52. * @return int
  53. */
  54. public function getNextPartNumberMarker()
  55. {
  56. return $this->nextPartNumberMarker;
  57. }
  58. /**
  59. * @return int
  60. */
  61. public function getMaxParts()
  62. {
  63. return $this->maxParts;
  64. }
  65. /**
  66. * @return string
  67. */
  68. public function getIsTruncated()
  69. {
  70. return $this->isTruncated;
  71. }
  72. /**
  73. * @return array
  74. */
  75. public function getListPart()
  76. {
  77. return $this->listPart;
  78. }
  79. private $bucket = "";
  80. private $key = "";
  81. private $uploadId = "";
  82. private $nextPartNumberMarker = 0;
  83. private $maxParts = 0;
  84. private $isTruncated = "";
  85. private $listPart = array();
  86. }