Shipment.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Rest\Response\Fields\Completion;
  6. /**
  7. * Temando API Completion Shipment Field
  8. *
  9. * @package Temando\Shipping\Rest
  10. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  11. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  12. * @link https://www.temando.com/
  13. */
  14. class Shipment
  15. {
  16. /**
  17. * @var string
  18. */
  19. private $id;
  20. /**
  21. * @var string
  22. */
  23. private $status;
  24. /**
  25. * @var string
  26. */
  27. private $message;
  28. /**
  29. * @var bool
  30. */
  31. private $isPaperless;
  32. /**
  33. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Shipment\Error[]
  34. */
  35. private $errors = [];
  36. /**
  37. * @return string
  38. */
  39. public function getId()
  40. {
  41. return $this->id;
  42. }
  43. /**
  44. * @param string $id
  45. * @return void
  46. */
  47. public function setId($id)
  48. {
  49. $this->id = $id;
  50. }
  51. /**
  52. * @return string
  53. */
  54. public function getStatus()
  55. {
  56. return $this->status;
  57. }
  58. /**
  59. * @param string $status
  60. * @return void
  61. */
  62. public function setStatus($status)
  63. {
  64. $this->status = $status;
  65. }
  66. /**
  67. * @return string
  68. */
  69. public function getMessage()
  70. {
  71. return $this->message;
  72. }
  73. /**
  74. * @param string $message
  75. * @return void
  76. */
  77. public function setMessage($message)
  78. {
  79. $this->message = $message;
  80. }
  81. /**
  82. * @return bool
  83. */
  84. public function getIsPaperless()
  85. {
  86. return $this->isPaperless;
  87. }
  88. /**
  89. * @param bool $isPaperless
  90. * @return void
  91. */
  92. public function setIsPaperless($isPaperless)
  93. {
  94. $this->isPaperless = $isPaperless;
  95. }
  96. /**
  97. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Shipment\Error[]
  98. */
  99. public function getErrors()
  100. {
  101. return $this->errors;
  102. }
  103. /**
  104. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Shipment\Error[] $errors
  105. * @return void
  106. */
  107. public function setErrors(array $errors)
  108. {
  109. $this->errors = $errors;
  110. }
  111. }