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.

178 lines
3.1 KiB

  1. <?php
  2. namespace SparkLib\UPS\Rate;
  3. class ErrorDetailType
  4. {
  5. /**
  6. *
  7. * @var string $Severity
  8. * @access public
  9. */
  10. public $Severity = null;
  11. /**
  12. *
  13. * @var CodeType $PrimaryErrorCode
  14. * @access public
  15. */
  16. public $PrimaryErrorCode = null;
  17. /**
  18. *
  19. * @var string $MinimumRetrySeconds
  20. * @access public
  21. */
  22. public $MinimumRetrySeconds = null;
  23. /**
  24. *
  25. * @var LocationType $Location
  26. * @access public
  27. */
  28. public $Location = null;
  29. /**
  30. *
  31. * @var CodeType $SubErrorCode
  32. * @access public
  33. */
  34. public $SubErrorCode = null;
  35. /**
  36. *
  37. * @var AdditionalInfoType $AdditionalInformation
  38. * @access public
  39. */
  40. public $AdditionalInformation = null;
  41. /**
  42. *
  43. * @param string $Severity
  44. * @param CodeType $PrimaryErrorCode
  45. * @param string $MinimumRetrySeconds
  46. * @param LocationType $Location
  47. * @param CodeType $SubErrorCode
  48. * @param AdditionalInfoType $AdditionalInformation
  49. * @access public
  50. */
  51. public function __construct($Severity = null, $PrimaryErrorCode = null, $MinimumRetrySeconds = null, $Location = null, $SubErrorCode = null, $AdditionalInformation = null)
  52. {
  53. $this->Severity = $Severity;
  54. $this->PrimaryErrorCode = $PrimaryErrorCode;
  55. $this->MinimumRetrySeconds = $MinimumRetrySeconds;
  56. $this->Location = $Location;
  57. $this->SubErrorCode = $SubErrorCode;
  58. $this->AdditionalInformation = $AdditionalInformation;
  59. }
  60. /**
  61. *
  62. * @return string
  63. */
  64. public function getSeverity()
  65. {
  66. return $this->Severity;
  67. }
  68. /**
  69. *
  70. * @param string $Severity
  71. */
  72. public function setSeverity($Severity)
  73. {
  74. $this->Severity = $Severity;
  75. }
  76. /**
  77. *
  78. * @return CodeType
  79. */
  80. public function getPrimaryErrorCode()
  81. {
  82. return $this->PrimaryErrorCode;
  83. }
  84. /**
  85. *
  86. * @param CodeType $PrimaryErrorCode
  87. */
  88. public function setPrimaryErrorCode($PrimaryErrorCode)
  89. {
  90. $this->PrimaryErrorCode = $PrimaryErrorCode;
  91. }
  92. /**
  93. *
  94. * @return string
  95. */
  96. public function getMinimumRetrySeconds()
  97. {
  98. return $this->MinimumRetrySeconds;
  99. }
  100. /**
  101. *
  102. * @param string $MinimumRetrySeconds
  103. */
  104. public function setMinimumRetrySeconds($MinimumRetrySeconds)
  105. {
  106. $this->MinimumRetrySeconds = $MinimumRetrySeconds;
  107. }
  108. /**
  109. *
  110. * @return LocationType
  111. */
  112. public function getLocation()
  113. {
  114. return $this->Location;
  115. }
  116. /**
  117. *
  118. * @param LocationType $Location
  119. */
  120. public function setLocation($Location)
  121. {
  122. $this->Location = $Location;
  123. }
  124. /**
  125. *
  126. * @return CodeType
  127. */
  128. public function getSubErrorCode()
  129. {
  130. return $this->SubErrorCode;
  131. }
  132. /**
  133. *
  134. * @param CodeType $SubErrorCode
  135. */
  136. public function setSubErrorCode($SubErrorCode)
  137. {
  138. $this->SubErrorCode = $SubErrorCode;
  139. }
  140. /**
  141. *
  142. * @return AdditionalInfoType
  143. */
  144. public function getAdditionalInformation()
  145. {
  146. return $this->AdditionalInformation;
  147. }
  148. /**
  149. *
  150. * @param AdditionalInfoType $AdditionalInformation
  151. */
  152. public function setAdditionalInformation($AdditionalInformation)
  153. {
  154. $this->AdditionalInformation = $AdditionalInformation;
  155. }
  156. }