Address.php 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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\Order\DeliverTo;
  6. /**
  7. * Temando API Order Deliver To Address 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 Address
  15. {
  16. /**
  17. * @var bool
  18. */
  19. private $isOrganisation;
  20. /**
  21. * @var string[]
  22. */
  23. private $lines = [];
  24. /**
  25. * @var string
  26. */
  27. private $countryCode;
  28. /**
  29. * @var string
  30. */
  31. private $postalCode;
  32. /**
  33. * @var string
  34. */
  35. private $locality;
  36. /**
  37. * @var string
  38. */
  39. private $dependentLocality;
  40. /**
  41. * @var string
  42. */
  43. private $administrativeArea;
  44. /**
  45. * @var float
  46. */
  47. private $longitude;
  48. /**
  49. * @var float
  50. */
  51. private $latitude;
  52. /**
  53. * @return bool
  54. */
  55. public function getIsOrganisation()
  56. {
  57. return $this->isOrganisation;
  58. }
  59. /**
  60. * @param bool $isOrganisation
  61. * @return void
  62. */
  63. public function setIsOrganisation($isOrganisation)
  64. {
  65. $this->isOrganisation = $isOrganisation;
  66. }
  67. /**
  68. * @return string[]
  69. */
  70. public function getLines()
  71. {
  72. return $this->lines;
  73. }
  74. /**
  75. * @param string[] $lines
  76. * @return void
  77. */
  78. public function setLines(array $lines)
  79. {
  80. $this->lines = $lines;
  81. }
  82. /**
  83. * @return string
  84. */
  85. public function getCountryCode()
  86. {
  87. return $this->countryCode;
  88. }
  89. /**
  90. * @param string $countryCode
  91. * @return void
  92. */
  93. public function setCountryCode($countryCode)
  94. {
  95. $this->countryCode = $countryCode;
  96. }
  97. /**
  98. * @return string
  99. */
  100. public function getPostalCode()
  101. {
  102. return $this->postalCode;
  103. }
  104. /**
  105. * @param string $postalCode
  106. * @return void
  107. */
  108. public function setPostalCode($postalCode)
  109. {
  110. $this->postalCode = $postalCode;
  111. }
  112. /**
  113. * @return string
  114. */
  115. public function getLocality()
  116. {
  117. return $this->locality;
  118. }
  119. /**
  120. * @param string $locality
  121. * @return void
  122. */
  123. public function setLocality($locality)
  124. {
  125. $this->locality = $locality;
  126. }
  127. /**
  128. * @return string
  129. */
  130. public function getDependentLocality()
  131. {
  132. return $this->dependentLocality;
  133. }
  134. /**
  135. * @param string $dependentLocality
  136. * @return void
  137. */
  138. public function setDependentLocality($dependentLocality)
  139. {
  140. $this->dependentLocality = $dependentLocality;
  141. }
  142. /**
  143. * @return string
  144. */
  145. public function getAdministrativeArea()
  146. {
  147. return $this->administrativeArea;
  148. }
  149. /**
  150. * @param string $administrativeArea
  151. * @return void
  152. */
  153. public function setAdministrativeArea($administrativeArea)
  154. {
  155. $this->administrativeArea = $administrativeArea;
  156. }
  157. /**
  158. * @return float
  159. */
  160. public function getLongitude()
  161. {
  162. return $this->longitude;
  163. }
  164. /**
  165. * @param float $longitude
  166. * @return void
  167. */
  168. public function setLongitude($longitude)
  169. {
  170. $this->longitude = $longitude;
  171. }
  172. /**
  173. * @return float
  174. */
  175. public function getLatitude()
  176. {
  177. return $this->latitude;
  178. }
  179. /**
  180. * @param float $latitude
  181. * @return void
  182. */
  183. public function setLatitude($latitude)
  184. {
  185. $this->latitude = $latitude;
  186. }
  187. }