__construct() public method

This method can be overwritten in extending SearchingContext's in order to provide strict type for QueryBuilder.
public __construct ( mixed $queryBuilder )
$queryBuilder mixed will be used in CriteriaBuilders to impose all the conditions.
 /**
  * @param Query  $query
  * @param Search $search
  */
 public function __construct(Search $search, Query $query = null)
 {
     $this->search = $search;
     if (!$query) {
         $query = new Query();
     }
     parent::__construct($query);
 }
 /**
  * @inheritDoc
  */
 public function __construct(QueryBuilder $queryBuilder)
 {
     parent::__construct($queryBuilder);
 }
 /**
  * @param $finder Finder
  */
 public function __construct(Finder $finder)
 {
     parent::__construct($finder);
 }