Package.php 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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\Generic;
  6. /**
  7. * Temando API Package 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 Package
  15. {
  16. /**
  17. * @var string
  18. */
  19. private $id;
  20. /**
  21. * @var string
  22. */
  23. private $type;
  24. /**
  25. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Value
  26. */
  27. private $grossWeight;
  28. /**
  29. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Dimensions
  30. */
  31. private $dimensions;
  32. /**
  33. * @var \Temando\Shipping\Rest\Response\Fields\Generic\RemainingSpace
  34. */
  35. private $remainingSpace;
  36. /**
  37. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Item[]
  38. */
  39. private $items = [];
  40. /**
  41. * @var string
  42. */
  43. private $trackingReference;
  44. /**
  45. * @var string
  46. */
  47. private $trackingUrl;
  48. /**
  49. * @var \Temando\Shipping\Rest\Response\Fields\Generic\Documentation[]
  50. */
  51. private $documentation = [];
  52. /**
  53. * @var string
  54. */
  55. private $containerReference;
  56. /**
  57. * @return string
  58. */
  59. public function getId()
  60. {
  61. return $this->id;
  62. }
  63. /**
  64. * @param string $id
  65. * @return void
  66. */
  67. public function setId($id)
  68. {
  69. $this->id = $id;
  70. }
  71. /**
  72. * @return string
  73. */
  74. public function getType()
  75. {
  76. return $this->type;
  77. }
  78. /**
  79. * @param string $type
  80. * @return void
  81. */
  82. public function setType($type)
  83. {
  84. $this->type = $type;
  85. }
  86. /**
  87. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Value
  88. */
  89. public function getGrossWeight()
  90. {
  91. return $this->grossWeight;
  92. }
  93. /**
  94. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Value $grossWeight
  95. * @return void
  96. */
  97. public function setGrossWeight(\Temando\Shipping\Rest\Response\Fields\Generic\Value $grossWeight)
  98. {
  99. $this->grossWeight = $grossWeight;
  100. }
  101. /**
  102. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Dimensions
  103. */
  104. public function getDimensions()
  105. {
  106. return $this->dimensions;
  107. }
  108. /**
  109. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Dimensions $dimensions
  110. * @return void
  111. */
  112. public function setDimensions(\Temando\Shipping\Rest\Response\Fields\Generic\Dimensions $dimensions)
  113. {
  114. $this->dimensions = $dimensions;
  115. }
  116. /**
  117. * @return \Temando\Shipping\Rest\Response\Fields\Generic\RemainingSpace
  118. */
  119. public function getRemainingSpace()
  120. {
  121. return $this->remainingSpace;
  122. }
  123. /**
  124. * @param \Temando\Shipping\Rest\Response\Fields\Generic\RemainingSpace $remainingSpace
  125. * @return void
  126. */
  127. public function setRemainingSpace(\Temando\Shipping\Rest\Response\Fields\Generic\RemainingSpace $remainingSpace)
  128. {
  129. $this->remainingSpace = $remainingSpace;
  130. }
  131. /**
  132. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Item[]
  133. */
  134. public function getItems()
  135. {
  136. return $this->items;
  137. }
  138. /**
  139. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Item[] $items
  140. * @return void
  141. */
  142. public function setItems(array $items)
  143. {
  144. $this->items = $items;
  145. }
  146. /**
  147. * @return string
  148. */
  149. public function getTrackingReference()
  150. {
  151. return $this->trackingReference;
  152. }
  153. /**
  154. * @param string $trackingReference
  155. * @return void
  156. */
  157. public function setTrackingReference($trackingReference)
  158. {
  159. $this->trackingReference = $trackingReference;
  160. }
  161. /**
  162. * @return string
  163. */
  164. public function getTrackingUrl()
  165. {
  166. return $this->trackingUrl;
  167. }
  168. /**
  169. * @param string $trackingUrl
  170. * @return void
  171. */
  172. public function setTrackingUrl($trackingUrl)
  173. {
  174. $this->trackingUrl = $trackingUrl;
  175. }
  176. /**
  177. * @return \Temando\Shipping\Rest\Response\Fields\Generic\Documentation[]
  178. */
  179. public function getDocumentation()
  180. {
  181. return $this->documentation;
  182. }
  183. /**
  184. * @param \Temando\Shipping\Rest\Response\Fields\Generic\Documentation[] $documentation
  185. * @return void
  186. */
  187. public function setDocumentation(array $documentation)
  188. {
  189. $this->documentation = $documentation;
  190. }
  191. /**
  192. * @return string
  193. */
  194. public function getContainerReference()
  195. {
  196. return $this->containerReference;
  197. }
  198. /**
  199. * @param string $containerReference
  200. * @return void
  201. */
  202. public function setContainerReference($containerReference)
  203. {
  204. $this->containerReference = $containerReference;
  205. }
  206. }