StrategyInterface.php 988 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Indexer\Table;
  7. /**
  8. * Interface \Magento\Framework\Indexer\Table\StrategyInterface
  9. *
  10. */
  11. interface StrategyInterface
  12. {
  13. const IDX_SUFFIX = '_idx';
  14. const TMP_SUFFIX = '_tmp';
  15. /**
  16. * Get IDX table usage flag
  17. *
  18. * @return bool
  19. * @SuppressWarnings(PHPMD.BooleanGetMethodName)
  20. */
  21. public function getUseIdxTable();
  22. /**
  23. * Set IDX table usage flag
  24. *
  25. * @param bool $value
  26. *
  27. * @return $this
  28. */
  29. public function setUseIdxTable($value = false);
  30. /**
  31. * Prepare index table name
  32. *
  33. * @param string $tablePrefix
  34. *
  35. * @return string
  36. */
  37. public function prepareTableName($tablePrefix);
  38. /**
  39. * Returns target table name
  40. *
  41. * @param string $tablePrefix
  42. *
  43. * @return string
  44. */
  45. public function getTableName($tablePrefix);
  46. }