HelperInterface.php 880 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Reports resource helper interface
  8. */
  9. namespace Magento\Reports\Model\ResourceModel;
  10. /**
  11. * @api
  12. * @since 100.0.2
  13. */
  14. interface HelperInterface
  15. {
  16. /**
  17. * Merge Index data
  18. *
  19. * @param string $mainTable
  20. * @param array $data
  21. * @param mixed $matchFields
  22. * @return string
  23. */
  24. public function mergeVisitorProductIndex($mainTable, $data, $matchFields);
  25. /**
  26. * Update rating position
  27. *
  28. * @param \Magento\Framework\DB\Adapter\AdapterInterface $connection
  29. * @param string $type
  30. * @param string $column
  31. * @param string $mainTable
  32. * @param string $aggregationTable
  33. * @return $this
  34. */
  35. public function updateReportRatingPos($connection, $type, $column, $mainTable, $aggregationTable);
  36. }