StreamEvent.php 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * Refer to LICENSE.txt distributed with the Temando Shipping module for notice of license
  4. */
  5. namespace Temando\Shipping\Model;
  6. use Magento\Framework\DataObject;
  7. /**
  8. * Temando Stream Event Entity
  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 Benjamin Heuer <benjamin.heuer@netresearch.de>
  15. * @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
  16. * @link http://www.temando.com/
  17. */
  18. class StreamEvent extends DataObject implements StreamEventInterface
  19. {
  20. /**
  21. * @return string
  22. */
  23. public function getEventId()
  24. {
  25. return $this->getData(self::EVENT_ID);
  26. }
  27. /**
  28. * @return string
  29. */
  30. public function getEventType()
  31. {
  32. return $this->getData(self::EVENT_TYPE);
  33. }
  34. /**
  35. * @return string
  36. */
  37. public function getEntityType()
  38. {
  39. return $this->getData(self::ENTITY_TYPE);
  40. }
  41. /**
  42. * @return string
  43. */
  44. public function getEntityId()
  45. {
  46. return $this->getData(self::ENTITY_ID);
  47. }
  48. }