CompletionAttributes.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  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;
  6. /**
  7. * Temando API Completion Resource Object Attributes
  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 CompletionAttributes
  15. {
  16. /**
  17. * @var string
  18. */
  19. private $status;
  20. /**
  21. * @var string
  22. */
  23. private $createdAt;
  24. /**
  25. * @var string
  26. */
  27. private $readyAt;
  28. /**
  29. * @var \Temando\Shipping\Rest\Response\Fields\Completion\Shipment[]
  30. */
  31. private $shipments = [];
  32. /**
  33. * @var \Temando\Shipping\Rest\Response\Fields\Completion\Group[]
  34. */
  35. private $groups = [];
  36. /**
  37. * @var \Temando\Shipping\Rest\Response\Fields\Completion\Callback
  38. */
  39. private $callback;
  40. /**
  41. * @var int
  42. */
  43. private $totalShipments;
  44. /**
  45. * @var \Temando\Shipping\Rest\Response\Fields\Completion\CustomAttributes
  46. */
  47. private $customAttributes;
  48. /**
  49. * @return string
  50. */
  51. public function getStatus()
  52. {
  53. return $this->status;
  54. }
  55. /**
  56. * @param string $status
  57. * @return void
  58. */
  59. public function setStatus($status)
  60. {
  61. $this->status = $status;
  62. }
  63. /**
  64. * @return string
  65. */
  66. public function getCreatedAt()
  67. {
  68. return $this->createdAt;
  69. }
  70. /**
  71. * @param string $createdAt
  72. * @return void
  73. */
  74. public function setCreatedAt($createdAt)
  75. {
  76. $this->createdAt = $createdAt;
  77. }
  78. /**
  79. * @return string
  80. */
  81. public function getReadyAt()
  82. {
  83. return $this->readyAt;
  84. }
  85. /**
  86. * @param string $readyAt
  87. * @return void
  88. */
  89. public function setReadyAt($readyAt)
  90. {
  91. $this->readyAt = $readyAt;
  92. }
  93. /**
  94. * @return \Temando\Shipping\Rest\Response\Fields\Completion\Shipment[]
  95. */
  96. public function getShipments()
  97. {
  98. return $this->shipments;
  99. }
  100. /**
  101. * @param \Temando\Shipping\Rest\Response\Fields\Completion\Shipment[] $shipments
  102. * @return void
  103. */
  104. public function setShipments(array $shipments)
  105. {
  106. $this->shipments = $shipments;
  107. }
  108. /**
  109. * @return \Temando\Shipping\Rest\Response\Fields\Completion\Group[]
  110. */
  111. public function getGroups()
  112. {
  113. return $this->groups;
  114. }
  115. /**
  116. * @param \Temando\Shipping\Rest\Response\Fields\Completion\Group[] $groups
  117. * @return void
  118. */
  119. public function setGroups(array $groups)
  120. {
  121. $this->groups = $groups;
  122. }
  123. /**
  124. * @return \Temando\Shipping\Rest\Response\Fields\Completion\Callback
  125. */
  126. public function getCallback()
  127. {
  128. return $this->callback;
  129. }
  130. /**
  131. * @param \Temando\Shipping\Rest\Response\Fields\Completion\Callback $callback
  132. * @return void
  133. */
  134. public function setCallback($callback)
  135. {
  136. $this->callback = $callback;
  137. }
  138. /**
  139. * @return int
  140. */
  141. public function getTotalShipments()
  142. {
  143. return $this->totalShipments;
  144. }
  145. /**
  146. * @param int $totalShipments
  147. * @return void
  148. */
  149. public function setTotalShipments($totalShipments)
  150. {
  151. $this->totalShipments = $totalShipments;
  152. }
  153. /**
  154. * @return \Temando\Shipping\Rest\Response\Fields\Completion\CustomAttributes
  155. */
  156. public function getCustomAttributes()
  157. {
  158. return $this->customAttributes;
  159. }
  160. /**
  161. * @param \Temando\Shipping\Rest\Response\Fields\Completion\CustomAttributes $customAttributes
  162. * @return void
  163. */
  164. public function setCustomAttributes($customAttributes)
  165. {
  166. $this->customAttributes = $customAttributes;
  167. }
  168. }