Shipment.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 Shipment
  9. *
  10. * @package Temando\Shipping\Model
  11. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  12. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  13. * @link http://www.temando.com/
  14. */
  15. class Shipment extends DataObject implements ShipmentInterface
  16. {
  17. /**
  18. * @return string
  19. */
  20. public function getShipmentId()
  21. {
  22. return $this->getData(ShipmentInterface::SHIPMENT_ID);
  23. }
  24. /**
  25. * @return string
  26. */
  27. public function getStatus()
  28. {
  29. return $this->getData(ShipmentInterface::STATUS);
  30. }
  31. /**
  32. * @return string
  33. */
  34. public function getMessage()
  35. {
  36. return $this->getData(ShipmentInterface::MESSAGE);
  37. }
  38. /**
  39. * @return ErrorInterface
  40. */
  41. public function getErrors()
  42. {
  43. return $this->getData(ShipmentInterface::ERRORS);
  44. }
  45. }