ContextInterface.php 920 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. /**
  3. *
  4. * Copyright © Magento, Inc. All rights reserved.
  5. * See COPYING.txt for license details.
  6. */
  7. namespace Magento\Catalog\Model\Layer;
  8. /**
  9. * Constructor modification point for Magento\Catalog\Model\Layer.
  10. *
  11. * All such context classes were introduced to allow for backwards compatible constructor modifications
  12. * of classes that were supposed to be extended by extension developers.
  13. *
  14. * Do not call methods of this class directly.
  15. *
  16. * As Magento moves from inheritance-based APIs all such classes will be deprecated together with their
  17. * corresponding abstract classes.
  18. */
  19. interface ContextInterface
  20. {
  21. /**
  22. * @return ItemCollectionProviderInterface
  23. */
  24. public function getCollectionProvider();
  25. /**
  26. * @return StateKeyInterface
  27. */
  28. public function getStateKey();
  29. /**
  30. * @return CollectionFilterInterface
  31. */
  32. public function getCollectionFilter();
  33. }