PHP Class KGzocha\Searcher\Criteria\Collection\CriteriaCollection

Author: Krzysztof Gzocha ([email protected])
Author: Daniel Ribeiro ([email protected])
Inheritance: extends KGzocha\Searcher\AbstractCollection, implements KGzocha\Searcher\Criteria\Collection\CriteriaCollectionInterface
Show file Open project: krzysztof-gzocha/searcher

Public Methods

Method Description
__construct ( KGzocha\Searcher\Criteria\CriteriaInterface[] $criteria = [] )
addCriteria ( KGzocha\Searcher\Criteria\CriteriaInterface $criteria )
getApplicableCriteria ( )
getCriteria ( )

Protected Methods

Method Description
isItemValid ( $item )

Method Details

__construct() public method

public __construct ( KGzocha\Searcher\Criteria\CriteriaInterface[] $criteria = [] )
$criteria KGzocha\Searcher\Criteria\CriteriaInterface[] array or \Traversable object

addCriteria() public method

public addCriteria ( KGzocha\Searcher\Criteria\CriteriaInterface $criteria )
$criteria KGzocha\Searcher\Criteria\CriteriaInterface

getApplicableCriteria() public method

getCriteria() public method

public getCriteria ( )

isItemValid() protected method

protected isItemValid ( $item )