DependencyInfoProviderInterface.php 978 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Indexer\Config;
  7. use Magento\Framework\Exception\NoSuchEntityException;
  8. /**
  9. * Provides an information about indexers dependencies.
  10. */
  11. interface DependencyInfoProviderInterface
  12. {
  13. /**
  14. * Returns Indexer Ids on which the current indexer depends directly.
  15. *
  16. * @param string $indexerId
  17. * @return string[]
  18. * @throws NoSuchEntityException In case when the indexer with the specified Id does not exist.
  19. */
  20. public function getIndexerIdsToRunBefore(string $indexerId): array;
  21. /**
  22. * Returns the list of Indexer Ids which directly depend on the current indexer.
  23. *
  24. * @param string $indexerId
  25. * @return string[]
  26. * @throws NoSuchEntityException In case when the indexer with the specified Id does not exist.
  27. */
  28. public function getIndexerIdsToRunAfter(string $indexerId): array;
  29. }