Value.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 Value 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 Value
  15. {
  16. /**
  17. * @var float
  18. */
  19. private $value;
  20. /**
  21. * @var string
  22. */
  23. private $unit;
  24. /**
  25. * @return float
  26. */
  27. public function getValue()
  28. {
  29. return $this->value;
  30. }
  31. /**
  32. * @param float $value
  33. * @return void
  34. */
  35. public function setValue($value)
  36. {
  37. $this->value = $value;
  38. }
  39. /**
  40. * @return string
  41. */
  42. public function getUnit()
  43. {
  44. return $this->unit;
  45. }
  46. /**
  47. * @param string $unit
  48. * @return void
  49. */
  50. public function setUnit($unit)
  51. {
  52. $this->unit = $unit;
  53. }
  54. }