summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Query/AST/UpdateItem.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/UpdateItem.php')
-rw-r--r--vendor/doctrine/orm/src/Query/AST/UpdateItem.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Query/AST/UpdateItem.php b/vendor/doctrine/orm/src/Query/AST/UpdateItem.php
new file mode 100644
index 0000000..b540593
--- /dev/null
+++ b/vendor/doctrine/orm/src/Query/AST/UpdateItem.php
@@ -0,0 +1,26 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Query\AST;
6
7use Doctrine\ORM\Query\SqlWalker;
8
9/**
10 * UpdateItem ::= [IdentificationVariable "."] {StateField | SingleValuedAssociationField} "=" NewValue
11 * NewValue ::= SimpleArithmeticExpression | StringPrimary | DatetimePrimary | BooleanPrimary |
12 * EnumPrimary | SimpleEntityExpression | "NULL"
13 *
14 * @link www.doctrine-project.org
15 */
16class UpdateItem extends Node
17{
18 public function __construct(public PathExpression $pathExpression, public InputParameter|ArithmeticExpression|null $newValue)
19 {
20 }
21
22 public function dispatch(SqlWalker $walker): string
23 {
24 return $walker->walkUpdateItem($this);
25 }
26}