ProductFrontendAction.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Catalog\Model;
  7. use Magento\Catalog\Api\Data\ProductFrontendActionInterface;
  8. /**
  9. * @inheritdoc
  10. */
  11. class ProductFrontendAction extends AbstractModel implements ProductFrontendActionInterface
  12. {
  13. /**
  14. * Initialize resource model
  15. *
  16. * @return void
  17. */
  18. protected function _construct()
  19. {
  20. $this->_init(\Magento\Catalog\Model\ResourceModel\ProductFrontendAction::class);
  21. }
  22. /**
  23. * @inheritdoc
  24. */
  25. public function getActionId()
  26. {
  27. return $this->getData('action_id');
  28. }
  29. /**
  30. * @inheritdoc
  31. */
  32. public function setActionId($actionId)
  33. {
  34. $this->setData('action_id', $actionId);
  35. }
  36. /**
  37. * @inheritdoc
  38. */
  39. public function getVisitorId()
  40. {
  41. return $this->getData('visitor_id');
  42. }
  43. /**
  44. * @inheritdoc
  45. */
  46. public function setVisitorId($visitorId)
  47. {
  48. $this->setData('visitor_id', $visitorId);
  49. }
  50. /**
  51. * @return mixed
  52. */
  53. public function getCustomerId()
  54. {
  55. return $this->getData('customer_id');
  56. }
  57. /**
  58. * @inheritdoc
  59. */
  60. public function setCustomerId($customerId)
  61. {
  62. $this->setData('customer_id');
  63. }
  64. /**
  65. * @inheritdoc
  66. */
  67. public function getProductId()
  68. {
  69. return $this->getData('product_id');
  70. }
  71. /**
  72. * @inheritdoc
  73. */
  74. public function setProductId($productId)
  75. {
  76. $this->setData('product_id', $productId);
  77. }
  78. /**
  79. * @inheritdoc
  80. */
  81. public function getAddedAt()
  82. {
  83. return $this->getData('added_at');
  84. }
  85. /**
  86. * @inheritdoc
  87. */
  88. public function setAddedAt($addedAt)
  89. {
  90. $this->setData('added_at');
  91. }
  92. /**
  93. * @inheritdoc
  94. */
  95. public function getTypeId()
  96. {
  97. return $this->getData('type_id');
  98. }
  99. /**
  100. * @inheritdoc
  101. */
  102. public function setTypeId($typeId)
  103. {
  104. $this->setData('type_id', $typeId);
  105. }
  106. }