Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CollectionModifier.php
Go to the documentation of this file.
1 <?php
6 namespace Magento\Framework\Data;
7 
9 
18 {
22  private $conditions;
23 
28  public function __construct(
29  array $conditions
30  ) {
31  $this->conditions = $conditions;
32  }
33 
41  public function apply(AbstractDb $collection)
42  {
43  foreach ($this->conditions as $condition) {
44  $condition->apply($collection);
45  }
46  }
47 }