PHP Interface KGzocha\Searcher\Chain\TransformerInterface

Author: Krzysztof Gzocha ([email protected])
Show file Open project: krzysztof-gzocha/searcher

Public Methods

Method Description
skip ( mixed $results ) : boolean Important! Results might be null when cell will be used as first one.
transform ( mixed $results, KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface $criteria ) : KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface Will transform previous results and criteria into new one, that will be used in next cell.

Method Details

skip() public method

Important! Results might be null when cell will be used as first one.
public skip ( mixed $results ) : boolean
$results mixed
return boolean

transform() public method

Will transform previous results and criteria into new one, that will be used in next cell.
public transform ( mixed $results, KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface $criteria ) : KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface
$results mixed
$criteria KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface
return KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface