ActionInterface.php 652 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Indexer;
  7. /**
  8. * @api Implement custom Action Interface
  9. * @since 100.0.2
  10. */
  11. interface ActionInterface
  12. {
  13. /**
  14. * Execute full indexation
  15. *
  16. * @return void
  17. */
  18. public function executeFull();
  19. /**
  20. * Execute partial indexation by ID list
  21. *
  22. * @param int[] $ids
  23. * @return void
  24. */
  25. public function executeList(array $ids);
  26. /**
  27. * Execute partial indexation by ID
  28. *
  29. * @param int $id
  30. * @return void
  31. */
  32. public function executeRow($id);
  33. }