PHP Class KGzocha\Searcher\Context\Doctrine\ODMBuilderSearchingContext

Author: Krzysztof Gzocha ([email protected])
Inheritance: extends KGzocha\Searcher\Context\AbstractSearchingContext
Show file Open project: krzysztof-gzocha/searcher

Public Methods

Method Description
__construct ( Builder $queryBuilder )
getQueryBuilder ( ) : Builder
getResults ( ) : mixed If you want to be sure that Searcher will return results as an array or \Traversable you can use already implemented WrappedResultsSearcher as an adapter.

Method Details

__construct() public method

public __construct ( Builder $queryBuilder )
$queryBuilder Doctrine\ODM\MongoDB\Query\Builder

getQueryBuilder() public method

public getQueryBuilder ( ) : Builder
return Doctrine\ODM\MongoDB\Query\Builder

getResults() public method

If you want to be sure that Searcher will return results as an array or \Traversable you can use already implemented WrappedResultsSearcher as an adapter.
public getResults ( ) : mixed
return mixed