LocationAttributes.php 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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. use Temando\Shipping\Rest\Response\Fields\Location\Address;
  7. use Temando\Shipping\Rest\Response\Fields\Location\Contact;
  8. use Temando\Shipping\Rest\Response\Fields\Location\Geodata;
  9. /**
  10. * Temando API Location Resource Object Attributes
  11. *
  12. * @package Temando\Shipping\Rest
  13. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  14. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  15. * @link https://www.temando.com/
  16. */
  17. class LocationAttributes
  18. {
  19. /**
  20. * @var string
  21. */
  22. private $type;
  23. /**
  24. * @var string
  25. */
  26. private $name;
  27. /**
  28. * @var \Temando\Shipping\Rest\Response\Fields\Location\Address
  29. */
  30. private $address;
  31. /**
  32. * @var \Temando\Shipping\Rest\Response\Fields\Location\Contact
  33. */
  34. private $contact;
  35. /**
  36. * @var \Temando\Shipping\Rest\Response\Fields\Location\OpeningHours
  37. */
  38. private $openingHours;
  39. /**
  40. * @var bool
  41. */
  42. private $isDefault;
  43. /**
  44. * @var bool
  45. */
  46. private $isClickAndCollect;
  47. /**
  48. * @var string
  49. */
  50. private $createdAt;
  51. /**
  52. * @var string
  53. */
  54. private $modifiedAt;
  55. /**
  56. * @var bool
  57. */
  58. private $enabled;
  59. /**
  60. * @var string
  61. */
  62. private $uniqueId;
  63. /**
  64. * @var \Temando\Shipping\Rest\Response\Fields\Location\Geodata
  65. */
  66. private $geodata;
  67. /**
  68. * @var string[]
  69. */
  70. private $customAttributes;
  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 string
  88. */
  89. public function getName()
  90. {
  91. return $this->name;
  92. }
  93. /**
  94. * @param string $name
  95. * @return void
  96. */
  97. public function setName($name)
  98. {
  99. $this->name = $name;
  100. }
  101. /**
  102. * @return \Temando\Shipping\Rest\Response\Fields\Location\Address
  103. */
  104. public function getAddress()
  105. {
  106. return $this->address;
  107. }
  108. /**
  109. * @param \Temando\Shipping\Rest\Response\Fields\Location\Address $address
  110. * @return void
  111. */
  112. public function setAddress(Address $address)
  113. {
  114. $this->address = $address;
  115. }
  116. /**
  117. * @return \Temando\Shipping\Rest\Response\Fields\Location\Contact
  118. */
  119. public function getContact()
  120. {
  121. return $this->contact;
  122. }
  123. /**
  124. * @param \Temando\Shipping\Rest\Response\Fields\Location\Contact $contact
  125. * @return void
  126. */
  127. public function setContact(Contact $contact)
  128. {
  129. $this->contact = $contact;
  130. }
  131. /**
  132. * @return \Temando\Shipping\Rest\Response\Fields\Location\OpeningHours
  133. */
  134. public function getOpeningHours()
  135. {
  136. return $this->openingHours;
  137. }
  138. /**
  139. * @param \Temando\Shipping\Rest\Response\Fields\Location\OpeningHours $openingHours
  140. * @return void
  141. */
  142. public function setOpeningHours($openingHours)
  143. {
  144. $this->openingHours = $openingHours;
  145. }
  146. /**
  147. * @return bool
  148. */
  149. public function getIsDefault()
  150. {
  151. return $this->isDefault;
  152. }
  153. /**
  154. * @param bool $isDefault
  155. * @return void
  156. */
  157. public function setIsDefault($isDefault)
  158. {
  159. $this->isDefault = (bool)$isDefault;
  160. }
  161. /**
  162. * @return bool
  163. */
  164. public function getIsClickAndCollect()
  165. {
  166. return $this->isClickAndCollect;
  167. }
  168. /**
  169. * @param bool $isClickAndCollect
  170. */
  171. public function setIsClickAndCollect($isClickAndCollect)
  172. {
  173. $this->isClickAndCollect = (bool)$isClickAndCollect;
  174. }
  175. /**
  176. * @return string
  177. */
  178. public function getCreatedAt()
  179. {
  180. return $this->createdAt;
  181. }
  182. /**
  183. * @param string $createdAt
  184. * @return void
  185. */
  186. public function setCreatedAt($createdAt)
  187. {
  188. $this->createdAt = $createdAt;
  189. }
  190. /**
  191. * @return string
  192. */
  193. public function getModifiedAt()
  194. {
  195. return $this->modifiedAt;
  196. }
  197. /**
  198. * @param string $modifiedAt
  199. * @return void
  200. */
  201. public function setModifiedAt($modifiedAt)
  202. {
  203. $this->modifiedAt = $modifiedAt;
  204. }
  205. /**
  206. * @return string
  207. */
  208. public function getUniqueId()
  209. {
  210. return $this->uniqueId;
  211. }
  212. /**
  213. * @param string $uniqueId
  214. * @return void
  215. */
  216. public function setUniqueId($uniqueId)
  217. {
  218. $this->uniqueId = $uniqueId;
  219. }
  220. /**
  221. * @return bool
  222. */
  223. public function getEnabled()
  224. {
  225. return $this->enabled;
  226. }
  227. /**
  228. * @param bool $enabled
  229. * @return void
  230. */
  231. public function setEnabled($enabled)
  232. {
  233. $this->enabled = $enabled;
  234. }
  235. /**
  236. * @return \Temando\Shipping\Rest\Response\Fields\Location\Geodata
  237. */
  238. public function getGeodata()
  239. {
  240. return $this->geodata;
  241. }
  242. /**
  243. * @param \Temando\Shipping\Rest\Response\Fields\Location\Geodata $geodata
  244. * @return void
  245. */
  246. public function setGeodata(Geodata $geodata)
  247. {
  248. $this->geodata = $geodata;
  249. }
  250. /**
  251. * @return string[]
  252. */
  253. public function getCustomAttributes()
  254. {
  255. return $this->customAttributes;
  256. }
  257. /**
  258. * @param string[] $customAttributes
  259. * @return void
  260. */
  261. public function setCustomAttributes(array $customAttributes)
  262. {
  263. $this->customAttributes = $customAttributes;
  264. }
  265. }