1 | <?php |
||
24 | class QueryBuilder extends Builder |
||
25 | { |
||
26 | /** |
||
27 | * @var SpecificationVisitorFactoryInterface |
||
28 | */ |
||
29 | protected $specificationVisitorFactory; |
||
30 | |||
31 | /** |
||
32 | * @var ComparatorVisitorFactoryInterface |
||
33 | */ |
||
34 | protected $comparatorVisitorFactory; |
||
35 | |||
36 | /** |
||
37 | * @var Delegate |
||
38 | */ |
||
39 | private $factory; |
||
40 | |||
41 | /** |
||
42 | * @param DocumentManager $dm |
||
43 | * @param string $documentName |
||
44 | * @param SpecificationVisitorFactoryInterface $specificationVisitorFactory |
||
45 | * @param ComparatorVisitorFactoryInterface $comparatorVisitorFactory |
||
46 | */ |
||
47 | public function __construct( |
||
71 | |||
72 | /** |
||
73 | * @param SpecificationInterface $criteria |
||
74 | * |
||
75 | * @return $this |
||
76 | */ |
||
77 | public function addSearchCriteria(SpecificationInterface $criteria) |
||
83 | |||
84 | /** |
||
85 | * @param ComparatorInterface $criteria |
||
86 | * |
||
87 | * @return $this |
||
88 | */ |
||
89 | public function addSortCriteria(ComparatorInterface $criteria) |
||
95 | |||
96 | /** |
||
97 | * @return \Doctrine\ODM\MongoDB\Query\Expr |
||
98 | */ |
||
99 | public function getExpr() |
||
103 | |||
104 | /** |
||
105 | * @return static |
||
106 | */ |
||
107 | public function createQueryBuilder() |
||
111 | } |
||
112 |