PartInfo.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <?php
  2. namespace OSS\Model;
  3. /**
  4. * Class PartInfo
  5. * @package OSS\Model
  6. */
  7. class PartInfo
  8. {
  9. /**
  10. * PartInfo constructor.
  11. *
  12. * @param int $partNumber
  13. * @param string $lastModified
  14. * @param string $eTag
  15. * @param int $size
  16. */
  17. public function __construct($partNumber, $lastModified, $eTag, $size)
  18. {
  19. $this->partNumber = $partNumber;
  20. $this->lastModified = $lastModified;
  21. $this->eTag = $eTag;
  22. $this->size = $size;
  23. }
  24. /**
  25. * @return int
  26. */
  27. public function getPartNumber()
  28. {
  29. return $this->partNumber;
  30. }
  31. /**
  32. * @return string
  33. */
  34. public function getLastModified()
  35. {
  36. return $this->lastModified;
  37. }
  38. /**
  39. * @return string
  40. */
  41. public function getETag()
  42. {
  43. return $this->eTag;
  44. }
  45. /**
  46. * @return int
  47. */
  48. public function getSize()
  49. {
  50. return $this->size;
  51. }
  52. private $partNumber = 0;
  53. private $lastModified = "";
  54. private $eTag = "";
  55. private $size = 0;
  56. }