CollectionModifierInterface.php 763 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\Data;
  7. use Magento\Framework\Data\Collection\AbstractDb;
  8. /**
  9. * Represents specific condition, that can be applied on product collection.
  10. * This condition can be some join statement, some filter, some derived query, etc...
  11. */
  12. interface CollectionModifierInterface
  13. {
  14. /**
  15. * Apply condition to collection
  16. * Each condition can be represented as collection filter or collection join
  17. * Each condition will be applied each time in place, where this condition will be called
  18. *
  19. * @param AbstractDb $abstractCollection
  20. * @return void
  21. */
  22. public function apply(AbstractDb $abstractCollection);
  23. }