diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/ArithmeticExpression.php')
-rw-r--r-- | vendor/doctrine/orm/src/Query/AST/ArithmeticExpression.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Query/AST/ArithmeticExpression.php b/vendor/doctrine/orm/src/Query/AST/ArithmeticExpression.php new file mode 100644 index 0000000..a819e05 --- /dev/null +++ b/vendor/doctrine/orm/src/Query/AST/ArithmeticExpression.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 | * ArithmeticExpression ::= SimpleArithmeticExpression | "(" Subselect ")" | ||
11 | * | ||
12 | * @link www.doctrine-project.org | ||
13 | */ | ||
14 | class ArithmeticExpression extends Node | ||
15 | { | ||
16 | public Node|string|null $simpleArithmeticExpression = null; | ||
17 | |||
18 | public Subselect|null $subselect = null; | ||
19 | |||
20 | public function isSimpleArithmeticExpression(): bool | ||
21 | { | ||
22 | return (bool) $this->simpleArithmeticExpression; | ||
23 | } | ||
24 | |||
25 | public function isSubselect(): bool | ||
26 | { | ||
27 | return (bool) $this->subselect; | ||
28 | } | ||
29 | |||
30 | public function dispatch(SqlWalker $walker): string | ||
31 | { | ||
32 | return $walker->walkArithmeticExpression($this); | ||
33 | } | ||
34 | } | ||