Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
CollectionProcessor.php
Go to the documentation of this file.
1 <?php
7 
10 
12 {
16  private $processors;
17 
21  public function __construct(
22  array $processors
23  ) {
24  $this->processors = $processors;
25  }
26 
31  {
32  foreach ($this->processors as $name => $processor) {
33  if (!($processor instanceof CollectionProcessorInterface)) {
34  throw new \InvalidArgumentException(
35  sprintf('Processor %s must implement %s interface.', $name, CollectionProcessorInterface::class)
36  );
37  }
39  }
40  }
41 }
process(SearchCriteriaInterface $searchCriteria, AbstractDb $collection)
$processor
Definition: 404.php:10
$searchCriteria
if(!isset($_GET['name'])) $name
Definition: log.php:14