DataObject.php 794 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\MysqlMq\Model;
  7. class DataObject extends \Magento\Framework\Api\AbstractExtensibleObject
  8. {
  9. /**
  10. * @return string
  11. */
  12. public function getName()
  13. {
  14. return $this->_get('name');
  15. }
  16. /**
  17. * @param string $name
  18. * @return $this
  19. */
  20. public function setName($name)
  21. {
  22. return $this->setData('name', $name);
  23. }
  24. /**
  25. * @return int|null
  26. */
  27. public function getEntityId()
  28. {
  29. return $this->_get('entity_id');
  30. }
  31. /**
  32. * @param int $entityId
  33. * @return $this
  34. */
  35. public function setEntityId($entityId)
  36. {
  37. return $this->setData('entity_id', $entityId);
  38. }
  39. }