Fee.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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\Order;
  6. /**
  7. * Temando API Order Fee 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 Fee
  15. {
  16. /**
  17. * @var string
  18. */
  19. private $type;
  20. /**
  21. * @var \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue
  22. */
  23. private $cost;
  24. /**
  25. * @return string
  26. */
  27. public function getType()
  28. {
  29. return $this->type;
  30. }
  31. /**
  32. * @param string $type
  33. */
  34. public function setType($type)
  35. {
  36. $this->type = $type;
  37. }
  38. /**
  39. * @return \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue
  40. */
  41. public function getCost()
  42. {
  43. return $this->cost;
  44. }
  45. /**
  46. * @param \Temando\Shipping\Rest\Response\Fields\Generic\MonetaryValue $cost
  47. */
  48. public function setCost($cost)
  49. {
  50. $this->cost = $cost;
  51. }
  52. }