Error.php 868 B

12345678910111213141516171819202122232425262728293031323334353637
  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. * @deprecated since 1.3.0
  11. * @see \Temando\Shipping\Model\Shipment\ShipmentError
  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 Error extends DataObject implements ErrorInterface
  19. {
  20. /**
  21. * @return string
  22. */
  23. public function getTitle()
  24. {
  25. return $this->getData(ErrorInterface::TITLE);
  26. }
  27. /**
  28. * @return string
  29. */
  30. public function getDetail()
  31. {
  32. return $this->getData(ErrorInterface::DETAIL);
  33. }
  34. }