A modest collection of PHP libraries used at SparkFun.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

151 lines
2.3 KiB

  1. <?php
  2. namespace SparkLib\UPS\Rate;
  3. class AddressType
  4. {
  5. /**
  6. *
  7. * @var string $AddressLine
  8. * @access public
  9. */
  10. public $AddressLine = null;
  11. /**
  12. *
  13. * @var string $City
  14. * @access public
  15. */
  16. public $City = null;
  17. /**
  18. *
  19. * @var string $StateProvinceCode
  20. * @access public
  21. */
  22. public $StateProvinceCode = null;
  23. /**
  24. *
  25. * @var string $PostalCode
  26. * @access public
  27. */
  28. public $PostalCode = null;
  29. /**
  30. *
  31. * @var string $CountryCode
  32. * @access public
  33. */
  34. public $CountryCode = null;
  35. /**
  36. *
  37. * @param string $AddressLine
  38. * @param string $City
  39. * @param string $StateProvinceCode
  40. * @param string $PostalCode
  41. * @param string $CountryCode
  42. * @access public
  43. */
  44. public function __construct($AddressLine = null, $City = null, $StateProvinceCode = null, $PostalCode = null, $CountryCode = null)
  45. {
  46. $this->AddressLine = $AddressLine;
  47. $this->City = $City;
  48. $this->StateProvinceCode = $StateProvinceCode;
  49. $this->PostalCode = $PostalCode;
  50. $this->CountryCode = $CountryCode;
  51. }
  52. /**
  53. *
  54. * @return string
  55. */
  56. public function getAddressLine()
  57. {
  58. return $this->AddressLine;
  59. }
  60. /**
  61. *
  62. * @param string $AddressLine
  63. */
  64. public function setAddressLine($AddressLine)
  65. {
  66. $this->AddressLine = $AddressLine;
  67. }
  68. /**
  69. *
  70. * @return string
  71. */
  72. public function getCity()
  73. {
  74. return $this->City;
  75. }
  76. /**
  77. *
  78. * @param string $City
  79. */
  80. public function setCity($City)
  81. {
  82. $this->City = $City;
  83. }
  84. /**
  85. *
  86. * @return string
  87. */
  88. public function getStateProvinceCode()
  89. {
  90. return $this->StateProvinceCode;
  91. }
  92. /**
  93. *
  94. * @param string $StateProvinceCode
  95. */
  96. public function setStateProvinceCode($StateProvinceCode)
  97. {
  98. $this->StateProvinceCode = $StateProvinceCode;
  99. }
  100. /**
  101. *
  102. * @return string
  103. */
  104. public function getPostalCode()
  105. {
  106. return $this->PostalCode;
  107. }
  108. /**
  109. *
  110. * @param string $PostalCode
  111. */
  112. public function setPostalCode($PostalCode)
  113. {
  114. $this->PostalCode = $PostalCode;
  115. }
  116. /**
  117. *
  118. * @return string
  119. */
  120. public function getCountryCode()
  121. {
  122. return $this->CountryCode;
  123. }
  124. /**
  125. *
  126. * @param string $CountryCode
  127. */
  128. public function setCountryCode($CountryCode)
  129. {
  130. $this->CountryCode = $CountryCode;
  131. }
  132. }