In <code>68bc00b</code>, while fixing coding style, I introduced many, many use statements in that file. Using half-qualified names sometimes, and unqualified names some other times makes no sense.
If AST\ is used at least once, use it always.
9 | 9 | use Doctrine\ORM\EntityManagerInterface; |
|
10 | 10 | use Doctrine\ORM\Mapping\ClassMetadata; |
|
11 | 11 | use Doctrine\ORM\Query; |
|
12 | - | use Doctrine\ORM\Query\AST\AggregateExpression; |
|
13 | - | use Doctrine\ORM\Query\AST\ArithmeticExpression; |
|
14 | - | use Doctrine\ORM\Query\AST\ArithmeticFactor; |
|
15 | - | use Doctrine\ORM\Query\AST\ArithmeticTerm; |
|
16 | - | use Doctrine\ORM\Query\AST\BetweenExpression; |
|
17 | - | use Doctrine\ORM\Query\AST\CoalesceExpression; |
|
18 | - | use Doctrine\ORM\Query\AST\CollectionMemberExpression; |
|
19 | - | use Doctrine\ORM\Query\AST\ComparisonExpression; |
|
20 | - | use Doctrine\ORM\Query\AST\ConditionalPrimary; |
|
21 | - | use Doctrine\ORM\Query\AST\DeleteClause; |
|
22 | - | use Doctrine\ORM\Query\AST\DeleteStatement; |
|
23 | - | use Doctrine\ORM\Query\AST\EmptyCollectionComparisonExpression; |
|
24 | - | use Doctrine\ORM\Query\AST\ExistsExpression; |
|
25 | - | use Doctrine\ORM\Query\AST\FromClause; |
|
26 | 12 | use Doctrine\ORM\Query\AST\Functions; |
|
27 | - | use Doctrine\ORM\Query\AST\Functions\FunctionNode; |
|
28 | - | use Doctrine\ORM\Query\AST\GeneralCaseExpression; |
|
29 | - | use Doctrine\ORM\Query\AST\GroupByClause; |
|
30 | - | use Doctrine\ORM\Query\AST\HavingClause; |
|
31 | - | use Doctrine\ORM\Query\AST\IdentificationVariableDeclaration; |
|
32 | - | use Doctrine\ORM\Query\AST\IndexBy; |
|
33 | - | use Doctrine\ORM\Query\AST\InExpression; |
|
34 | - | use Doctrine\ORM\Query\AST\InputParameter; |
|
35 | - | use Doctrine\ORM\Query\AST\InstanceOfExpression; |
|
36 | - | use Doctrine\ORM\Query\AST\Join; |
|
37 | - | use Doctrine\ORM\Query\AST\JoinAssociationPathExpression; |
|
38 | - | use Doctrine\ORM\Query\AST\LikeExpression; |
|
39 | - | use Doctrine\ORM\Query\AST\Literal; |
|
40 | - | use Doctrine\ORM\Query\AST\NewObjectExpression; |
|
41 | - | use Doctrine\ORM\Query\AST\Node; |
|
42 | - | use Doctrine\ORM\Query\AST\NullComparisonExpression; |
|
43 | - | use Doctrine\ORM\Query\AST\NullIfExpression; |
|
44 | - | use Doctrine\ORM\Query\AST\OrderByClause; |
|
45 | - | use Doctrine\ORM\Query\AST\OrderByItem; |
|
46 | - | use Doctrine\ORM\Query\AST\PartialObjectExpression; |
|
47 | - | use Doctrine\ORM\Query\AST\PathExpression; |
|
48 | - | use Doctrine\ORM\Query\AST\QuantifiedExpression; |
|
49 | - | use Doctrine\ORM\Query\AST\RangeVariableDeclaration; |
|
50 | - | use Doctrine\ORM\Query\AST\SelectClause; |
|
51 | - | use Doctrine\ORM\Query\AST\SelectExpression; |
|
52 | - | use Doctrine\ORM\Query\AST\SelectStatement; |
|
53 | - | use Doctrine\ORM\Query\AST\SimpleArithmeticExpression; |
|
54 | - | use Doctrine\ORM\Query\AST\SimpleSelectClause; |
|
55 | - | use Doctrine\ORM\Query\AST\SimpleSelectExpression; |
|
56 | - | use Doctrine\ORM\Query\AST\SimpleWhenClause; |
|
57 | - | use Doctrine\ORM\Query\AST\Subselect; |
|
58 | - | use Doctrine\ORM\Query\AST\SubselectFromClause; |
|
59 | - | use Doctrine\ORM\Query\AST\UpdateClause; |
|
60 | - | use Doctrine\ORM\Query\AST\UpdateItem; |
|
61 | - | use Doctrine\ORM\Query\AST\UpdateStatement; |
|
62 | - | use Doctrine\ORM\Query\AST\WhenClause; |
|
63 | - | use Doctrine\ORM\Query\AST\WhereClause; |
|
64 | 13 | use LogicException; |
|
65 | 14 | use ReflectionClass; |
|
66 | 15 |
299 | 248 | /** |
|
300 | 249 | * Parses and builds AST for the given Query. |
|
301 | 250 | * |
|
302 | - | * @return SelectStatement|UpdateStatement|DeleteStatement |
|
251 | + | * @return AST\SelectStatement|AST\UpdateStatement|AST\DeleteStatement |
|
303 | 252 | */ |
|
304 | 253 | public function getAST() |
|
305 | 254 | { |
459 | 408 | * |
|
460 | 409 | * @param AST\SelectStatement|AST\DeleteStatement|AST\UpdateStatement $AST |
|
461 | 410 | */ |
|
462 | - | private function fixIdentificationVariableOrder(Node $AST): void |
|
411 | + | private function fixIdentificationVariableOrder(AST\Node $AST): void |
|
463 | 412 | { |
|
464 | 413 | if (count($this->identVariableExpressions) <= 1) { |
|
465 | 414 | return; |
675 | 624 | /** |
|
676 | 625 | * Validates that the given <tt>NewObjectExpression</tt>. |
|
677 | 626 | */ |
|
678 | - | private function processDeferredNewObjectExpressions(SelectStatement $AST): void |
|
627 | + | private function processDeferredNewObjectExpressions(AST\SelectStatement $AST): void |
|
679 | 628 | { |
|
680 | 629 | foreach ($this->deferredNewObjectExpressions as $deferredItem) { |
|
681 | 630 | $expression = $deferredItem['expression']; |
884 | 833 | /** |
|
885 | 834 | * QueryLanguage ::= SelectStatement | UpdateStatement | DeleteStatement |
|
886 | 835 | * |
|
887 | - | * @return SelectStatement|UpdateStatement|DeleteStatement |
|
836 | + | * @return AST\SelectStatement|AST\UpdateStatement|AST\DeleteStatement |
|
888 | 837 | */ |
|
889 | 838 | public function QueryLanguage() |
|
890 | 839 | { |
921 | 870 | /** |
|
922 | 871 | * SelectStatement ::= SelectClause FromClause [WhereClause] [GroupByClause] [HavingClause] [OrderByClause] |
|
923 | 872 | * |
|
924 | - | * @return SelectStatement |
|
873 | + | * @return AST\SelectStatement |
|
925 | 874 | */ |
|
926 | 875 | public function SelectStatement() |
|
927 | 876 | { |
938 | 887 | /** |
|
939 | 888 | * UpdateStatement ::= UpdateClause [WhereClause] |
|
940 | 889 | * |
|
941 | - | * @return UpdateStatement |
|
890 | + | * @return AST\UpdateStatement |
|
942 | 891 | */ |
|
943 | 892 | public function UpdateStatement() |
|
944 | 893 | { |
952 | 901 | /** |
|
953 | 902 | * DeleteStatement ::= DeleteClause [WhereClause] |
|
954 | 903 | * |
|
955 | - | * @return DeleteStatement |
|
904 | + | * @return AST\DeleteStatement |
|
956 | 905 | */ |
|
957 | 906 | public function DeleteStatement() |
|
958 | 907 | { |
1101 | 1050 | /** |
|
1102 | 1051 | * JoinAssociationPathExpression ::= IdentificationVariable "." (CollectionValuedAssociationField | SingleValuedAssociationField) |
|
1103 | 1052 | * |
|
1104 | - | * @return JoinAssociationPathExpression |
|
1053 | + | * @return AST\JoinAssociationPathExpression |
|
1105 | 1054 | */ |
|
1106 | 1055 | public function JoinAssociationPathExpression() |
|
1107 | 1056 | { |
1136 | 1085 | * PathExpression ::= IdentificationVariable {"." identifier}* |
|
1137 | 1086 | * |
|
1138 | 1087 | * @param int $expectedTypes |
|
1139 | - | * @psalm-param int-mask-of<PathExpression::TYPE_*> $expectedTypes |
|
1088 | + | * @psalm-param int-mask-of<AST\PathExpression::TYPE_*> $expectedTypes |
|
1140 | 1089 | * |
|
1141 | - | * @return PathExpression |
|
1090 | + | * @return AST\PathExpression |
|
1142 | 1091 | */ |
|
1143 | 1092 | public function PathExpression($expectedTypes) |
|
1144 | 1093 | { |
1174 | 1123 | /** |
|
1175 | 1124 | * AssociationPathExpression ::= CollectionValuedPathExpression | SingleValuedAssociationPathExpression |
|
1176 | 1125 | * |
|
1177 | - | * @return PathExpression |
|
1126 | + | * @return AST\PathExpression |
|
1178 | 1127 | */ |
|
1179 | 1128 | public function AssociationPathExpression() |
|
1180 | 1129 | { |
1187 | 1136 | /** |
|
1188 | 1137 | * SingleValuedPathExpression ::= StateFieldPathExpression | SingleValuedAssociationPathExpression |
|
1189 | 1138 | * |
|
1190 | - | * @return PathExpression |
|
1139 | + | * @return AST\PathExpression |
|
1191 | 1140 | */ |
|
1192 | 1141 | public function SingleValuedPathExpression() |
|
1193 | 1142 | { |
1200 | 1149 | /** |
|
1201 | 1150 | * StateFieldPathExpression ::= IdentificationVariable "." StateField |
|
1202 | 1151 | * |
|
1203 | - | * @return PathExpression |
|
1152 | + | * @return AST\PathExpression |
|
1204 | 1153 | */ |
|
1205 | 1154 | public function StateFieldPathExpression() |
|
1206 | 1155 | { |
1210 | 1159 | /** |
|
1211 | 1160 | * SingleValuedAssociationPathExpression ::= IdentificationVariable "." SingleValuedAssociationField |
|
1212 | 1161 | * |
|
1213 | - | * @return PathExpression |
|
1162 | + | * @return AST\PathExpression |
|
1214 | 1163 | */ |
|
1215 | 1164 | public function SingleValuedAssociationPathExpression() |
|
1216 | 1165 | { |
1220 | 1169 | /** |
|
1221 | 1170 | * CollectionValuedPathExpression ::= IdentificationVariable "." CollectionValuedAssociationField |
|
1222 | 1171 | * |
|
1223 | - | * @return PathExpression |
|
1172 | + | * @return AST\PathExpression |
|
1224 | 1173 | */ |
|
1225 | 1174 | public function CollectionValuedPathExpression() |
|
1226 | 1175 | { |
1230 | 1179 | /** |
|
1231 | 1180 | * SelectClause ::= "SELECT" ["DISTINCT"] SelectExpression {"," SelectExpression} |
|
1232 | 1181 | * |
|
1233 | - | * @return SelectClause |
|
1182 | + | * @return AST\SelectClause |
|
1234 | 1183 | */ |
|
1235 | 1184 | public function SelectClause() |
|
1236 | 1185 | { |
1260 | 1209 | /** |
|
1261 | 1210 | * SimpleSelectClause ::= "SELECT" ["DISTINCT"] SimpleSelectExpression |
|
1262 | 1211 | * |
|
1263 | - | * @return SimpleSelectClause |
|
1212 | + | * @return AST\SimpleSelectClause |
|
1264 | 1213 | */ |
|
1265 | 1214 | public function SimpleSelectClause() |
|
1266 | 1215 | { |
1279 | 1228 | /** |
|
1280 | 1229 | * UpdateClause ::= "UPDATE" AbstractSchemaName ["AS"] AliasIdentificationVariable "SET" UpdateItem {"," UpdateItem}* |
|
1281 | 1230 | * |
|
1282 | - | * @return UpdateClause |
|
1231 | + | * @return AST\UpdateClause |
|
1283 | 1232 | */ |
|
1284 | 1233 | public function UpdateClause() |
|
1285 | 1234 | { |
1331 | 1280 | /** |
|
1332 | 1281 | * DeleteClause ::= "DELETE" ["FROM"] AbstractSchemaName ["AS"] AliasIdentificationVariable |
|
1333 | 1282 | * |
|
1334 | - | * @return DeleteClause |
|
1283 | + | * @return AST\DeleteClause |
|
1335 | 1284 | */ |
|
1336 | 1285 | public function DeleteClause() |
|
1337 | 1286 | { |
1378 | 1327 | /** |
|
1379 | 1328 | * FromClause ::= "FROM" IdentificationVariableDeclaration {"," IdentificationVariableDeclaration}* |
|
1380 | 1329 | * |
|
1381 | - | * @return FromClause |
|
1330 | + | * @return AST\FromClause |
|
1382 | 1331 | */ |
|
1383 | 1332 | public function FromClause() |
|
1384 | 1333 | { |
1399 | 1348 | /** |
|
1400 | 1349 | * SubselectFromClause ::= "FROM" SubselectIdentificationVariableDeclaration {"," SubselectIdentificationVariableDeclaration}* |
|
1401 | 1350 | * |
|
1402 | - | * @return SubselectFromClause |
|
1351 | + | * @return AST\SubselectFromClause |
|
1403 | 1352 | */ |
|
1404 | 1353 | public function SubselectFromClause() |
|
1405 | 1354 | { |
1420 | 1369 | /** |
|
1421 | 1370 | * WhereClause ::= "WHERE" ConditionalExpression |
|
1422 | 1371 | * |
|
1423 | - | * @return WhereClause |
|
1372 | + | * @return AST\WhereClause |
|
1424 | 1373 | */ |
|
1425 | 1374 | public function WhereClause() |
|
1426 | 1375 | { |
1432 | 1381 | /** |
|
1433 | 1382 | * HavingClause ::= "HAVING" ConditionalExpression |
|
1434 | 1383 | * |
|
1435 | - | * @return HavingClause |
|
1384 | + | * @return AST\HavingClause |
|
1436 | 1385 | */ |
|
1437 | 1386 | public function HavingClause() |
|
1438 | 1387 | { |
1444 | 1393 | /** |
|
1445 | 1394 | * GroupByClause ::= "GROUP" "BY" GroupByItem {"," GroupByItem}* |
|
1446 | 1395 | * |
|
1447 | - | * @return GroupByClause |
|
1396 | + | * @return AST\GroupByClause |
|
1448 | 1397 | */ |
|
1449 | 1398 | public function GroupByClause() |
|
1450 | 1399 | { |
1465 | 1414 | /** |
|
1466 | 1415 | * OrderByClause ::= "ORDER" "BY" OrderByItem {"," OrderByItem}* |
|
1467 | 1416 | * |
|
1468 | - | * @return OrderByClause |
|
1417 | + | * @return AST\OrderByClause |
|
1469 | 1418 | */ |
|
1470 | 1419 | public function OrderByClause() |
|
1471 | 1420 | { |
1487 | 1436 | /** |
|
1488 | 1437 | * Subselect ::= SimpleSelectClause SubselectFromClause [WhereClause] [GroupByClause] [HavingClause] [OrderByClause] |
|
1489 | 1438 | * |
|
1490 | - | * @return Subselect |
|
1439 | + | * @return AST\Subselect |
|
1491 | 1440 | */ |
|
1492 | 1441 | public function Subselect() |
|
1493 | 1442 | { |
1510 | 1459 | /** |
|
1511 | 1460 | * UpdateItem ::= SingleValuedPathExpression "=" NewValue |
|
1512 | 1461 | * |
|
1513 | - | * @return UpdateItem |
|
1462 | + | * @return AST\UpdateItem |
|
1514 | 1463 | */ |
|
1515 | 1464 | public function UpdateItem() |
|
1516 | 1465 | { |
1524 | 1473 | /** |
|
1525 | 1474 | * GroupByItem ::= IdentificationVariable | ResultVariable | SingleValuedPathExpression |
|
1526 | 1475 | * |
|
1527 | - | * @return string|PathExpression |
|
1476 | + | * @return string|AST\PathExpression |
|
1528 | 1477 | */ |
|
1529 | 1478 | public function GroupByItem() |
|
1530 | 1479 | { |
1553 | 1502 | * ScalarExpression | ResultVariable | FunctionDeclaration |
|
1554 | 1503 | * ) ["ASC" | "DESC"] |
|
1555 | 1504 | * |
|
1556 | - | * @return OrderByItem |
|
1505 | + | * @return AST\OrderByItem |
|
1557 | 1506 | */ |
|
1558 | 1507 | public function OrderByItem() |
|
1559 | 1508 | { |
1647 | 1596 | /** |
|
1648 | 1597 | * IdentificationVariableDeclaration ::= RangeVariableDeclaration [IndexBy] {Join}* |
|
1649 | 1598 | * |
|
1650 | - | * @return IdentificationVariableDeclaration |
|
1599 | + | * @return AST\IdentificationVariableDeclaration |
|
1651 | 1600 | */ |
|
1652 | 1601 | public function IdentificationVariableDeclaration() |
|
1653 | 1602 | { |
1688 | 1637 | * accessible is "FROM", prohibiting an easy implementation without larger |
|
1689 | 1638 | * changes.} |
|
1690 | 1639 | * |
|
1691 | - | * @return IdentificationVariableDeclaration |
|
1640 | + | * @return AST\IdentificationVariableDeclaration |
|
1692 | 1641 | */ |
|
1693 | 1642 | public function SubselectIdentificationVariableDeclaration() |
|
1694 | 1643 | { |
1737 | 1686 | * (JoinAssociationDeclaration | RangeVariableDeclaration) |
|
1738 | 1687 | * ["WITH" ConditionalExpression] |
|
1739 | 1688 | * |
|
1740 | - | * @return Join |
|
1689 | + | * @return AST\Join |
|
1741 | 1690 | */ |
|
1742 | 1691 | public function Join() |
|
1743 | 1692 | { |
1792 | 1741 | /** |
|
1793 | 1742 | * RangeVariableDeclaration ::= AbstractSchemaName ["AS"] AliasIdentificationVariable |
|
1794 | 1743 | * |
|
1795 | - | * @return RangeVariableDeclaration |
|
1744 | + | * @return AST\RangeVariableDeclaration |
|
1796 | 1745 | * |
|
1797 | 1746 | * @throws QueryException |
|
1798 | 1747 | */ |
1873 | 1822 | * PartialObjectExpression ::= "PARTIAL" IdentificationVariable "." PartialFieldSet |
|
1874 | 1823 | * PartialFieldSet ::= "{" SimpleStateField {"," SimpleStateField}* "}" |
|
1875 | 1824 | * |
|
1876 | - | * @return PartialObjectExpression |
|
1825 | + | * @return AST\PartialObjectExpression |
|
1877 | 1826 | */ |
|
1878 | 1827 | public function PartialObjectExpression() |
|
1879 | 1828 | { |
1937 | 1886 | /** |
|
1938 | 1887 | * NewObjectExpression ::= "NEW" AbstractSchemaName "(" NewObjectArg {"," NewObjectArg}* ")" |
|
1939 | 1888 | * |
|
1940 | - | * @return NewObjectExpression |
|
1889 | + | * @return AST\NewObjectExpression |
|
1941 | 1890 | */ |
|
1942 | 1891 | public function NewObjectExpression() |
|
1943 | 1892 | { |
1994 | 1943 | /** |
|
1995 | 1944 | * IndexBy ::= "INDEX" "BY" SingleValuedPathExpression |
|
1996 | 1945 | * |
|
1997 | - | * @return IndexBy |
|
1946 | + | * @return AST\IndexBy |
|
1998 | 1947 | */ |
|
1999 | 1948 | public function IndexBy() |
|
2000 | 1949 | { |
2133 | 2082 | /** |
|
2134 | 2083 | * CoalesceExpression ::= "COALESCE" "(" ScalarExpression {"," ScalarExpression}* ")" |
|
2135 | 2084 | * |
|
2136 | - | * @return CoalesceExpression |
|
2085 | + | * @return AST\CoalesceExpression |
|
2137 | 2086 | */ |
|
2138 | 2087 | public function CoalesceExpression() |
|
2139 | 2088 | { |
2158 | 2107 | /** |
|
2159 | 2108 | * NullIfExpression ::= "NULLIF" "(" ScalarExpression "," ScalarExpression ")" |
|
2160 | 2109 | * |
|
2161 | - | * @return NullIfExpression |
|
2110 | + | * @return AST\NullIfExpression |
|
2162 | 2111 | */ |
|
2163 | 2112 | public function NullIfExpression() |
|
2164 | 2113 | { |
2177 | 2126 | /** |
|
2178 | 2127 | * GeneralCaseExpression ::= "CASE" WhenClause {WhenClause}* "ELSE" ScalarExpression "END" |
|
2179 | 2128 | * |
|
2180 | - | * @return GeneralCaseExpression |
|
2129 | + | * @return AST\GeneralCaseExpression |
|
2181 | 2130 | */ |
|
2182 | 2131 | public function GeneralCaseExpression() |
|
2183 | 2132 | { |
2225 | 2174 | /** |
|
2226 | 2175 | * WhenClause ::= "WHEN" ConditionalExpression "THEN" ScalarExpression |
|
2227 | 2176 | * |
|
2228 | - | * @return WhenClause |
|
2177 | + | * @return AST\WhenClause |
|
2229 | 2178 | */ |
|
2230 | 2179 | public function WhenClause() |
|
2231 | 2180 | { |
2239 | 2188 | /** |
|
2240 | 2189 | * SimpleWhenClause ::= "WHEN" ScalarExpression "THEN" ScalarExpression |
|
2241 | 2190 | * |
|
2242 | - | * @return SimpleWhenClause |
|
2191 | + | * @return AST\SimpleWhenClause |
|
2243 | 2192 | */ |
|
2244 | 2193 | public function SimpleWhenClause() |
|
2245 | 2194 | { |
2256 | 2205 | * PartialObjectExpression | "(" Subselect ")" | CaseExpression | NewObjectExpression |
|
2257 | 2206 | * ) [["AS"] ["HIDDEN"] AliasResultVariable] |
|
2258 | 2207 | * |
|
2259 | - | * @return SelectExpression |
|
2208 | + | * @return AST\SelectExpression |
|
2260 | 2209 | */ |
|
2261 | 2210 | public function SelectExpression() |
|
2262 | 2211 | { |
2387 | 2336 | * AggregateExpression | "(" Subselect ")" | ScalarExpression |
|
2388 | 2337 | * ) [["AS"] AliasResultVariable] |
|
2389 | 2338 | * |
|
2390 | - | * @return SimpleSelectExpression |
|
2339 | + | * @return AST\SimpleSelectExpression |
|
2391 | 2340 | */ |
|
2392 | 2341 | public function SimpleSelectExpression() |
|
2393 | 2342 | { |
2553 | 2502 | /** |
|
2554 | 2503 | * ConditionalPrimary ::= SimpleConditionalExpression | "(" ConditionalExpression ")" |
|
2555 | 2504 | * |
|
2556 | - | * @return ConditionalPrimary |
|
2505 | + | * @return AST\ConditionalPrimary |
|
2557 | 2506 | */ |
|
2558 | 2507 | public function ConditionalPrimary() |
|
2559 | 2508 | { |
2698 | 2647 | /** |
|
2699 | 2648 | * EmptyCollectionComparisonExpression ::= CollectionValuedPathExpression "IS" ["NOT"] "EMPTY" |
|
2700 | 2649 | * |
|
2701 | - | * @return EmptyCollectionComparisonExpression |
|
2650 | + | * @return AST\EmptyCollectionComparisonExpression |
|
2702 | 2651 | */ |
|
2703 | 2652 | public function EmptyCollectionComparisonExpression() |
|
2704 | 2653 | { |
2723 | 2672 | * EntityExpression ::= SingleValuedAssociationPathExpression | SimpleEntityExpression |
|
2724 | 2673 | * SimpleEntityExpression ::= IdentificationVariable | InputParameter |
|
2725 | 2674 | * |
|
2726 | - | * @return CollectionMemberExpression |
|
2675 | + | * @return AST\CollectionMemberExpression |
|
2727 | 2676 | */ |
|
2728 | 2677 | public function CollectionMemberExpression() |
|
2729 | 2678 | { |
2754 | 2703 | /** |
|
2755 | 2704 | * Literal ::= string | char | integer | float | boolean |
|
2756 | 2705 | * |
|
2757 | - | * @return Literal |
|
2706 | + | * @return AST\Literal |
|
2758 | 2707 | */ |
|
2759 | 2708 | public function Literal() |
|
2760 | 2709 | { |
2802 | 2751 | /** |
|
2803 | 2752 | * InputParameter ::= PositionalParameter | NamedParameter |
|
2804 | 2753 | * |
|
2805 | - | * @return InputParameter |
|
2754 | + | * @return AST\InputParameter |
|
2806 | 2755 | */ |
|
2807 | 2756 | public function InputParameter() |
|
2808 | 2757 | { |
2814 | 2763 | /** |
|
2815 | 2764 | * ArithmeticExpression ::= SimpleArithmeticExpression | "(" Subselect ")" |
|
2816 | 2765 | * |
|
2817 | - | * @return ArithmeticExpression |
|
2766 | + | * @return AST\ArithmeticExpression |
|
2818 | 2767 | */ |
|
2819 | 2768 | public function ArithmeticExpression() |
|
2820 | 2769 | { |
2840 | 2789 | /** |
|
2841 | 2790 | * SimpleArithmeticExpression ::= ArithmeticTerm {("+" | "-") ArithmeticTerm}* |
|
2842 | 2791 | * |
|
2843 | - | * @return SimpleArithmeticExpression|ArithmeticTerm |
|
2792 | + | * @return AST\SimpleArithmeticExpression|AST\ArithmeticTerm |
|
2844 | 2793 | */ |
|
2845 | 2794 | public function SimpleArithmeticExpression() |
|
2846 | 2795 | { |
2866 | 2815 | /** |
|
2867 | 2816 | * ArithmeticTerm ::= ArithmeticFactor {("*" | "/") ArithmeticFactor}* |
|
2868 | 2817 | * |
|
2869 | - | * @return ArithmeticTerm |
|
2818 | + | * @return AST\ArithmeticTerm |
|
2870 | 2819 | */ |
|
2871 | 2820 | public function ArithmeticTerm() |
|
2872 | 2821 | { |
2892 | 2841 | /** |
|
2893 | 2842 | * ArithmeticFactor ::= [("+" | "-")] ArithmeticPrimary |
|
2894 | 2843 | * |
|
2895 | - | * @return ArithmeticFactor |
|
2844 | + | * @return AST\ArithmeticFactor |
|
2896 | 2845 | */ |
|
2897 | 2846 | public function ArithmeticFactor() |
|
2898 | 2847 | { |
2921 | 2870 | * | FunctionsReturningDatetime | IdentificationVariable | ResultVariable |
|
2922 | 2871 | * | InputParameter | CaseExpression |
|
2923 | 2872 | * |
|
2924 | - | * @return Node|string |
|
2873 | + | * @return AST\Node|string |
|
2925 | 2874 | */ |
|
2926 | 2875 | public function ArithmeticPrimary() |
|
2927 | 2876 | { |
2975 | 2924 | /** |
|
2976 | 2925 | * StringExpression ::= StringPrimary | ResultVariable | "(" Subselect ")" |
|
2977 | 2926 | * |
|
2978 | - | * @return Subselect|Node|string |
|
2927 | + | * @return AST\Subselect|AST\Node|string |
|
2979 | 2928 | */ |
|
2980 | 2929 | public function StringExpression() |
|
2981 | 2930 | { |
3004 | 2953 | /** |
|
3005 | 2954 | * StringPrimary ::= StateFieldPathExpression | string | InputParameter | FunctionsReturningStrings | AggregateExpression | CaseExpression |
|
3006 | 2955 | * |
|
3007 | - | * @return Node |
|
2956 | + | * @return AST\Node |
|
3008 | 2957 | */ |
|
3009 | 2958 | public function StringPrimary() |
|
3010 | 2959 | { |
3053 | 3002 | /** |
|
3054 | 3003 | * EntityExpression ::= SingleValuedAssociationPathExpression | SimpleEntityExpression |
|
3055 | 3004 | * |
|
3056 | - | * @return AST\InputParameter|PathExpression |
|
3005 | + | * @return AST\InputParameter|AST\PathExpression |
|
3057 | 3006 | */ |
|
3058 | 3007 | public function EntityExpression() |
|
3059 | 3008 | { |
3084 | 3033 | * AggregateExpression ::= |
|
3085 | 3034 | * ("AVG" | "MAX" | "MIN" | "SUM" | "COUNT") "(" ["DISTINCT"] SimpleArithmeticExpression ")" |
|
3086 | 3035 | * |
|
3087 | - | * @return AggregateExpression |
|
3036 | + | * @return AST\AggregateExpression |
|
3088 | 3037 | */ |
|
3089 | 3038 | public function AggregateExpression() |
|
3090 | 3039 | { |
3114 | 3063 | /** |
|
3115 | 3064 | * QuantifiedExpression ::= ("ALL" | "ANY" | "SOME") "(" Subselect ")" |
|
3116 | 3065 | * |
|
3117 | - | * @return QuantifiedExpression |
|
3066 | + | * @return AST\QuantifiedExpression |
|
3118 | 3067 | */ |
|
3119 | 3068 | public function QuantifiedExpression() |
|
3120 | 3069 | { |
3139 | 3088 | /** |
|
3140 | 3089 | * BetweenExpression ::= ArithmeticExpression ["NOT"] "BETWEEN" ArithmeticExpression "AND" ArithmeticExpression |
|
3141 | 3090 | * |
|
3142 | - | * @return BetweenExpression |
|
3091 | + | * @return AST\BetweenExpression |
|
3143 | 3092 | */ |
|
3144 | 3093 | public function BetweenExpression() |
|
3145 | 3094 | { |
3165 | 3114 | /** |
|
3166 | 3115 | * ComparisonExpression ::= ArithmeticExpression ComparisonOperator ( QuantifiedExpression | ArithmeticExpression ) |
|
3167 | 3116 | * |
|
3168 | - | * @return ComparisonExpression |
|
3117 | + | * @return AST\ComparisonExpression |
|
3169 | 3118 | */ |
|
3170 | 3119 | public function ComparisonExpression() |
|
3171 | 3120 | { |
3183 | 3132 | /** |
|
3184 | 3133 | * InExpression ::= SingleValuedPathExpression ["NOT"] "IN" "(" (InParameter {"," InParameter}* | Subselect) ")" |
|
3185 | 3134 | * |
|
3186 | - | * @return InExpression |
|
3135 | + | * @return AST\InExpression |
|
3187 | 3136 | */ |
|
3188 | 3137 | public function InExpression() |
|
3189 | 3138 | { |
3219 | 3168 | /** |
|
3220 | 3169 | * InstanceOfExpression ::= IdentificationVariable ["NOT"] "INSTANCE" ["OF"] (InstanceOfParameter | "(" InstanceOfParameter {"," InstanceOfParameter}* ")") |
|
3221 | 3170 | * |
|
3222 | - | * @return InstanceOfExpression |
|
3171 | + | * @return AST\InstanceOfExpression |
|
3223 | 3172 | */ |
|
3224 | 3173 | public function InstanceOfExpression() |
|
3225 | 3174 | { |
3283 | 3232 | /** |
|
3284 | 3233 | * LikeExpression ::= StringExpression ["NOT"] "LIKE" StringPrimary ["ESCAPE" char] |
|
3285 | 3234 | * |
|
3286 | - | * @return LikeExpression |
|
3235 | + | * @return AST\LikeExpression |
|
3287 | 3236 | */ |
|
3288 | 3237 | public function LikeExpression() |
|
3289 | 3238 | { |
3322 | 3271 | /** |
|
3323 | 3272 | * NullComparisonExpression ::= (InputParameter | NullIfExpression | CoalesceExpression | AggregateExpression | FunctionDeclaration | IdentificationVariable | SingleValuedPathExpression | ResultVariable) "IS" ["NOT"] "NULL" |
|
3324 | 3273 | * |
|
3325 | - | * @return NullComparisonExpression |
|
3274 | + | * @return AST\NullComparisonExpression |
|
3326 | 3275 | */ |
|
3327 | 3276 | public function NullComparisonExpression() |
|
3328 | 3277 | { |
3396 | 3345 | /** |
|
3397 | 3346 | * ExistsExpression ::= ["NOT"] "EXISTS" "(" Subselect ")" |
|
3398 | 3347 | * |
|
3399 | - | * @return ExistsExpression |
|
3348 | + | * @return AST\ExistsExpression |
|
3400 | 3349 | */ |
|
3401 | 3350 | public function ExistsExpression() |
|
3402 | 3351 | { |
3470 | 3419 | /** |
|
3471 | 3420 | * FunctionDeclaration ::= FunctionsReturningStrings | FunctionsReturningNumerics | FunctionsReturningDatetime |
|
3472 | 3421 | * |
|
3473 | - | * @return FunctionNode |
|
3422 | + | * @return Functions\FunctionNode |
|
3474 | 3423 | */ |
|
3475 | 3424 | public function FunctionDeclaration() |
|
3476 | 3425 | { |
3501 | 3450 | /** |
|
3502 | 3451 | * Helper function for FunctionDeclaration grammar rule. |
|
3503 | 3452 | */ |
|
3504 | - | private function CustomFunctionDeclaration(): ?FunctionNode |
|
3453 | + | private function CustomFunctionDeclaration(): ?Functions\FunctionNode |
|
3505 | 3454 | { |
|
3506 | 3455 | $token = $this->lexer->lookahead; |
|
3507 | 3456 | $funcName = strtolower($token['value']); |
3536 | 3485 | * "BIT_AND" "(" ArithmeticPrimary "," ArithmeticPrimary ")" | |
|
3537 | 3486 | * "BIT_OR" "(" ArithmeticPrimary "," ArithmeticPrimary ")" |
|
3538 | 3487 | * |
|
3539 | - | * @return FunctionNode |
|
3488 | + | * @return Functions\FunctionNode |
|
3540 | 3489 | */ |
|
3541 | 3490 | public function FunctionsReturningNumerics() |
|
3542 | 3491 | { |
3549 | 3498 | return $function; |
|
3550 | 3499 | } |
|
3551 | 3500 | ||
3552 | - | /** @return FunctionNode */ |
|
3501 | + | /** @return Functions\FunctionNode */ |
|
3553 | 3502 | public function CustomFunctionsReturningNumerics() |
|
3554 | 3503 | { |
|
3555 | 3504 | // getCustomNumericFunction is case-insensitive |
3575 | 3524 | * "DATE_ADD" "(" ArithmeticPrimary "," ArithmeticPrimary "," StringPrimary ")" | |
|
3576 | 3525 | * "DATE_SUB" "(" ArithmeticPrimary "," ArithmeticPrimary "," StringPrimary ")" |
|
3577 | 3526 | * |
|
3578 | - | * @return FunctionNode |
|
3527 | + | * @return Functions\FunctionNode |
|
3579 | 3528 | */ |
|
3580 | 3529 | public function FunctionsReturningDatetime() |
|
3581 | 3530 | { |
3588 | 3537 | return $function; |
|
3589 | 3538 | } |
|
3590 | 3539 | ||
3591 | - | /** @return FunctionNode */ |
|
3540 | + | /** @return Functions\FunctionNode */ |
|
3592 | 3541 | public function CustomFunctionsReturningDatetime() |
|
3593 | 3542 | { |
|
3594 | 3543 | // getCustomDatetimeFunction is case-insensitive |
3615 | 3564 | * "UPPER" "(" StringPrimary ")" | |
|
3616 | 3565 | * "IDENTITY" "(" SingleValuedAssociationPathExpression {"," string} ")" |
|
3617 | 3566 | * |
|
3618 | - | * @return FunctionNode |
|
3567 | + | * @return Functions\FunctionNode |
|
3619 | 3568 | */ |
|
3620 | 3569 | public function FunctionsReturningStrings() |
|
3621 | 3570 | { |
3628 | 3577 | return $function; |
|
3629 | 3578 | } |
|
3630 | 3579 | ||
3631 | - | /** @return FunctionNode */ |
|
3580 | + | /** @return Functions\FunctionNode */ |
|
3632 | 3581 | public function CustomFunctionsReturningStrings() |
|
3633 | 3582 | { |
|
3634 | 3583 | // getCustomStringFunction is case-insensitive |
Files | Coverage |
---|---|
lib/Doctrine/ORM | 84.75% |
Project Totals (371 files) | 84.75% |