5
5
use DateTime ;
6
6
use Exception ;
7
7
use InvalidArgumentException ;
8
- use Jackalope \Query \QOM \Selector ;
9
8
use LogicException ;
10
9
use PHPCR \PropertyType ;
11
10
use PHPCR \Query \InvalidQueryException ;
21
20
use PHPCR \Query \QOM \JoinInterface ;
22
21
use PHPCR \Query \QOM \NotInterface ;
23
22
use PHPCR \Query \QOM \OrderingInterface ;
24
- use PHPCR \Query \QOM \PropertyExistenceInterface ;
25
23
use PHPCR \Query \QOM \PropertyValueInterface ;
26
24
use PHPCR \Query \QOM \QueryObjectModelConstantsInterface as Constants ;
27
25
use PHPCR \Query \QOM \QueryObjectModelFactoryInterface ;
@@ -133,9 +131,7 @@ public function parse($sql2)
133
131
134
132
$ columns = $ this ->buildColumns ($ columnData );
135
133
136
- $ query = $ this ->factory ->createQuery ($ source , $ constraint , $ orderings , $ columns );
137
-
138
- return $ query ;
134
+ return $ this ->factory ->createQuery ($ source , $ constraint , $ orderings , $ columns );
139
135
}
140
136
141
137
/**
@@ -161,7 +157,7 @@ protected function parseSource()
161
157
162
158
/**
163
159
* 6.7.3. Selector
164
- * Parse an SQL2 selector and return a QOM\Selector .
160
+ * Parse an SQL2 selector and return a QOM\SelectorInterface .
165
161
*
166
162
* @return SelectorInterface
167
163
*/
@@ -519,7 +515,7 @@ protected function parseOperator()
519
515
/**
520
516
* 6.7.18 PropertyExistence.
521
517
*
522
- * @return PropertyExistenceInterface
518
+ * @return ConstraintInterface
523
519
*/
524
520
protected function parsePropertyExistence ()
525
521
{
0 commit comments