getApplicableCriteria() public method

Will return array of CriteriaInterface that returns true in shouldBeApplied().
public getApplicableCriteria ( ) : KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface
return KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface
Exemplo n.º 1
0
 /**
  * {@inheritdoc}
  */
 public function search(CriteriaCollectionInterface $criteriaCollection)
 {
     $builders = $this->builders->getCriteriaBuildersForContext($this->searchingContext);
     foreach ($criteriaCollection->getApplicableCriteria() as $criteria) {
         $this->searchForModel($criteria, $this->searchingContext, $builders);
     }
     return $this->searchingContext->getResults();
 }