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.

124 lines
1.8 KiB

  1. <?php
  2. namespace SparkLib\UPS\Rate;
  3. class DimensionsType
  4. {
  5. /**
  6. *
  7. * @var CodeDescriptionType $UnitOfMeasurement
  8. * @access public
  9. */
  10. public $UnitOfMeasurement = null;
  11. /**
  12. *
  13. * @var string $Length
  14. * @access public
  15. */
  16. public $Length = null;
  17. /**
  18. *
  19. * @var string $Width
  20. * @access public
  21. */
  22. public $Width = null;
  23. /**
  24. *
  25. * @var string $Height
  26. * @access public
  27. */
  28. public $Height = null;
  29. /**
  30. *
  31. * @param CodeDescriptionType $UnitOfMeasurement
  32. * @param string $Length
  33. * @param string $Width
  34. * @param string $Height
  35. * @access public
  36. */
  37. public function __construct($UnitOfMeasurement = null, $Length = null, $Width = null, $Height = null)
  38. {
  39. $this->UnitOfMeasurement = $UnitOfMeasurement;
  40. $this->Length = $Length;
  41. $this->Width = $Width;
  42. $this->Height = $Height;
  43. }
  44. /**
  45. *
  46. * @return CodeDescriptionType
  47. */
  48. public function getUnitOfMeasurement()
  49. {
  50. return $this->UnitOfMeasurement;
  51. }
  52. /**
  53. *
  54. * @param CodeDescriptionType $UnitOfMeasurement
  55. */
  56. public function setUnitOfMeasurement($UnitOfMeasurement)
  57. {
  58. $this->UnitOfMeasurement = $UnitOfMeasurement;
  59. }
  60. /**
  61. *
  62. * @return string
  63. */
  64. public function getLength()
  65. {
  66. return $this->Length;
  67. }
  68. /**
  69. *
  70. * @param string $Length
  71. */
  72. public function setLength($Length)
  73. {
  74. $this->Length = $Length;
  75. }
  76. /**
  77. *
  78. * @return string
  79. */
  80. public function getWidth()
  81. {
  82. return $this->Width;
  83. }
  84. /**
  85. *
  86. * @param string $Width
  87. */
  88. public function setWidth($Width)
  89. {
  90. $this->Width = $Width;
  91. }
  92. /**
  93. *
  94. * @return string
  95. */
  96. public function getHeight()
  97. {
  98. return $this->Height;
  99. }
  100. /**
  101. *
  102. * @param string $Height
  103. */
  104. public function setHeight($Height)
  105. {
  106. $this->Height = $Height;
  107. }
  108. }