Dimensions.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  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\Generic;
  6. /**
  7. * Temando API Dimensions 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 Dimensions
  15. {
  16. /**
  17. * @var float
  18. */
  19. private $length;
  20. /**
  21. * @var float
  22. */
  23. private $width;
  24. /**
  25. * @var float
  26. */
  27. private $height;
  28. /**
  29. * @var string
  30. */
  31. private $unit;
  32. /**
  33. * @return float
  34. */
  35. public function getLength()
  36. {
  37. return $this->length;
  38. }
  39. /**
  40. * @param float $length
  41. * @return void
  42. */
  43. public function setLength($length)
  44. {
  45. $this->length = $length;
  46. }
  47. /**
  48. * @return float
  49. */
  50. public function getWidth()
  51. {
  52. return $this->width;
  53. }
  54. /**
  55. * @param float $width
  56. * @return void
  57. */
  58. public function setWidth($width)
  59. {
  60. $this->width = $width;
  61. }
  62. /**
  63. * @return float
  64. */
  65. public function getHeight()
  66. {
  67. return $this->height;
  68. }
  69. /**
  70. * @param float $height
  71. * @return void
  72. */
  73. public function setHeight($height)
  74. {
  75. $this->height = $height;
  76. }
  77. /**
  78. * @return string
  79. */
  80. public function getUnit()
  81. {
  82. return $this->unit;
  83. }
  84. /**
  85. * @param string $unit
  86. * @return void
  87. */
  88. public function setUnit($unit)
  89. {
  90. $this->unit = $unit;
  91. }
  92. }