PHP Class KGzocha\Searcher\Chain\ChainSearch

It will perform all (not skipped) sub-searches, transform theirs results into CriteriaCollection and pass those criteria to next sub-search. At the end it will return collection of all the results from all the steps.
Author: Krzysztof Gzocha ([email protected])
Inheritance: implements KGzocha\Searcher\SearcherInterface
Show file Open project: krzysztof-gzocha/searcher

Public Methods

Method Description
__construct ( KGzocha\Searcher\Chain\Collection\CellCollectionInterface $cellCollection )
search ( KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface $criteriaCollection ) : ResultCollection Will perform multiple sub-searches.

Private Methods

Method Description
getNewCriteria ( KGzocha\Searcher\Chain\CellInterface $cell, KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface $criteria, mixed $results ) : KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface If $cell has transformer then it will be used to return new criteria.

Method Details

__construct() public method

public __construct ( KGzocha\Searcher\Chain\Collection\CellCollectionInterface $cellCollection )
$cellCollection KGzocha\Searcher\Chain\Collection\CellCollectionInterface