diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/ConditionalPrimary.php')
-rw-r--r-- | vendor/doctrine/orm/src/Query/AST/ConditionalPrimary.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Query/AST/ConditionalPrimary.php b/vendor/doctrine/orm/src/Query/AST/ConditionalPrimary.php new file mode 100644 index 0000000..9344cd9 --- /dev/null +++ b/vendor/doctrine/orm/src/Query/AST/ConditionalPrimary.php | |||
@@ -0,0 +1,34 @@ | |||
1 | <?php | ||
2 | |||
3 | declare(strict_types=1); | ||
4 | |||
5 | namespace Doctrine\ORM\Query\AST; | ||
6 | |||
7 | use Doctrine\ORM\Query\SqlWalker; | ||
8 | |||
9 | /** | ||
10 | * ConditionalPrimary ::= SimpleConditionalExpression | "(" ConditionalExpression ")" | ||
11 | * | ||
12 | * @link www.doctrine-project.org | ||
13 | */ | ||
14 | class ConditionalPrimary extends Node implements Phase2OptimizableConditional | ||
15 | { | ||
16 | public Node|null $simpleConditionalExpression = null; | ||
17 | |||
18 | public ConditionalExpression|Phase2OptimizableConditional|null $conditionalExpression = null; | ||
19 | |||
20 | public function isSimpleConditionalExpression(): bool | ||
21 | { | ||
22 | return (bool) $this->simpleConditionalExpression; | ||
23 | } | ||
24 | |||
25 | public function isConditionalExpression(): bool | ||
26 | { | ||
27 | return (bool) $this->conditionalExpression; | ||
28 | } | ||
29 | |||
30 | public function dispatch(SqlWalker $walker): string | ||
31 | { | ||
32 | return $walker->walkConditionalPrimary($this); | ||
33 | } | ||
34 | } | ||