RequestCheckerInterface.php 663 B

123456789101112131415161718192021222324
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\CatalogSearch\Model\Adapter\Aggregation;
  7. use Magento\Framework\Search\RequestInterface;
  8. /**
  9. * RequestCheckerInterface provides the interface to work with query checkers.
  10. */
  11. interface RequestCheckerInterface
  12. {
  13. /**
  14. * Provided to check if it's needed to collect all attributes for entity.
  15. *
  16. * Avoiding unnecessary expensive attribute aggregation operation will improve performance.
  17. *
  18. * @param RequestInterface $request
  19. * @return bool
  20. */
  21. public function isApplicable(RequestInterface $request);
  22. }