Log.php 759 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\ReleaseNotification\Model\Viewer;
  7. use Magento\Framework\DataObject;
  8. /**
  9. * Release notification viewer log resource
  10. */
  11. class Log extends DataObject
  12. {
  13. /**
  14. * Get log id
  15. *
  16. * @return int
  17. */
  18. public function getId()
  19. {
  20. return $this->getData('id');
  21. }
  22. /**
  23. * Get viewer id
  24. *
  25. * @return int
  26. */
  27. public function getViewerId()
  28. {
  29. return $this->getData('viewer_id');
  30. }
  31. /**
  32. * Get last viewed product version
  33. *
  34. * @return string
  35. */
  36. public function getLastViewVersion()
  37. {
  38. return $this->getData('last_view_version');
  39. }
  40. }