summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Query/AST/ConditionalPrimary.php
diff options
context:
space:
mode:
authorpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
committerpolo <ordipolo@gmx.fr>2024-08-13 23:45:21 +0200
commitbf6655a534a6775d30cafa67bd801276bda1d98d (patch)
treec6381e3f6c81c33eab72508f410b165ba05f7e9c /vendor/doctrine/orm/src/Query/AST/ConditionalPrimary.php
parent94d67a4b51f8e62e7d518cce26a526ae1ec48278 (diff)
downloadAppliGestionPHP-bf6655a534a6775d30cafa67bd801276bda1d98d.zip
VERSION 0.2 doctrine ORM et entités
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/ConditionalPrimary.php')
-rw-r--r--vendor/doctrine/orm/src/Query/AST/ConditionalPrimary.php34
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
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Query\AST;
6
7use Doctrine\ORM\Query\SqlWalker;
8
9/**
10 * ConditionalPrimary ::= SimpleConditionalExpression | "(" ConditionalExpression ")"
11 *
12 * @link www.doctrine-project.org
13 */
14class 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}