FulfillmentAttributes.php 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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 Fulfillment 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 FulfillmentAttributes
  15. {
  16. /**
  17. * @var string
  18. */
  19. private $state;
  20. /**
  21. * @var string
  22. */
  23. private $reference;
  24. /**
  25. * @var string
  26. */
  27. private $createdAt;
  28. /**
  29. * @var string
  30. */
  31. private $readyAt;
  32. /**
  33. * @var string
  34. */
  35. private $cancelledAt;
  36. /**
  37. * @var \Temando\Shipping\Rest\Response\Fields\Fulfillment\Item[]
  38. */
  39. private $items = [];
  40. /**
  41. * @var \Temando\Shipping\Rest\Response\Fields\LocationAttributes
  42. */
  43. private $pickUpLocation;
  44. /**
  45. * @return string
  46. */
  47. public function getState()
  48. {
  49. return $this->state;
  50. }
  51. /**
  52. * @param string $state
  53. * @return void
  54. */
  55. public function setState($state)
  56. {
  57. $this->state = $state;
  58. }
  59. /**
  60. * @return string
  61. */
  62. public function getCreatedAt()
  63. {
  64. return $this->createdAt;
  65. }
  66. /**
  67. * @param string $createdAt
  68. * @return void
  69. */
  70. public function setCreatedAt($createdAt)
  71. {
  72. $this->createdAt = $createdAt;
  73. }
  74. /**
  75. * @return string
  76. */
  77. public function getReadyAt()
  78. {
  79. return $this->readyAt;
  80. }
  81. /**
  82. * @param string $readyAt
  83. * @return void
  84. */
  85. public function setReadyAt($readyAt)
  86. {
  87. $this->readyAt = $readyAt;
  88. }
  89. /**
  90. * @return string
  91. */
  92. public function getCancelledAt()
  93. {
  94. return $this->cancelledAt;
  95. }
  96. /**
  97. * @param string $cancelledAt
  98. * @return void
  99. */
  100. public function setCancelledAt($cancelledAt)
  101. {
  102. $this->cancelledAt = $cancelledAt;
  103. }
  104. /**
  105. * @return string
  106. */
  107. public function getReference()
  108. {
  109. return $this->reference;
  110. }
  111. /**
  112. * @param string $reference
  113. * @return void
  114. */
  115. public function setReference($reference)
  116. {
  117. $this->reference = $reference;
  118. }
  119. /**
  120. * @return \Temando\Shipping\Rest\Response\Fields\LocationAttributes
  121. */
  122. public function getPickUpLocation()
  123. {
  124. return $this->pickUpLocation;
  125. }
  126. /**
  127. * @param \Temando\Shipping\Rest\Response\Fields\LocationAttributes $pickUpLocation
  128. * @return void
  129. */
  130. public function setPickUpLocation(LocationAttributes $pickUpLocation)
  131. {
  132. $this->pickUpLocation = $pickUpLocation;
  133. }
  134. /**
  135. * @return \Temando\Shipping\Rest\Response\Fields\Fulfillment\Item[]
  136. */
  137. public function getItems()
  138. {
  139. return $this->items;
  140. }
  141. /**
  142. * @param \Temando\Shipping\Rest\Response\Fields\Fulfillment\Item[] $items
  143. * @return void
  144. */
  145. public function setItems(array $items)
  146. {
  147. $this->items = $items;
  148. }
  149. }