PickupCharge.php 977 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\Dispatch;
  6. use Magento\Framework\DataObject;
  7. /**
  8. * Temando Dispatch Pickup Charge
  9. *
  10. * @package Temando\Shipping\Model
  11. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  12. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  13. * @link https://www.temando.com/
  14. */
  15. class PickupCharge extends DataObject implements PickupChargeInterface
  16. {
  17. /**
  18. * @return string
  19. */
  20. public function getDescription()
  21. {
  22. return $this->getData(PickupChargeInterface::DESCRIPTION);
  23. }
  24. /**
  25. * @return string
  26. */
  27. public function getAmount()
  28. {
  29. return $this->getData(PickupChargeInterface::AMOUNT);
  30. }
  31. /**
  32. * @return string
  33. */
  34. public function getCurrency()
  35. {
  36. return $this->getData(PickupChargeInterface::CURRENCY);
  37. }
  38. }