ShipmentError.php 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model\Shipment;
  6. use Magento\Framework\DataObject;
  7. /**
  8. * Temando Shipment Error
  9. *
  10. * This model contains the data used in the shipping module, not necessarily all
  11. * data available in its webservice representation.
  12. *
  13. * @package Temando\Shipping\Model
  14. * @author Christoph Aßmann <christoph.assmann@netresearch.de>
  15. * @license https://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  16. * @link https://www.temando.com/
  17. */
  18. class ShipmentError extends DataObject implements ShipmentErrorInterface
  19. {
  20. /**
  21. * Get attribute status
  22. *
  23. * @return string
  24. */
  25. public function getStatus()
  26. {
  27. return $this->getData(ShipmentErrorInterface::STATUS);
  28. }
  29. /**
  30. * Get attribute title
  31. *
  32. * @return string
  33. */
  34. public function getTitle()
  35. {
  36. return $this->getData(ShipmentErrorInterface::TITLE);
  37. }
  38. /**
  39. * Get attribute Code.
  40. *
  41. * @return string
  42. */
  43. public function getCode()
  44. {
  45. return $this->getData(ShipmentErrorInterface::CODE);
  46. }
  47. /**
  48. * Get error detail (optional)
  49. *
  50. * @return string
  51. */
  52. public function getDetail()
  53. {
  54. return $this->getData(ShipmentErrorInterface::DETAIL);
  55. }
  56. }