summaryrefslogtreecommitdiff
path: root/vendor/doctrine/orm/src/Query/AST/UpdateClause.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/UpdateClause.php')
-rw-r--r--vendor/doctrine/orm/src/Query/AST/UpdateClause.php29
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Query/AST/UpdateClause.php b/vendor/doctrine/orm/src/Query/AST/UpdateClause.php
new file mode 100644
index 0000000..cafcff0
--- /dev/null
+++ b/vendor/doctrine/orm/src/Query/AST/UpdateClause.php
@@ -0,0 +1,29 @@
1<?php
2
3declare(strict_types=1);
4
5namespace Doctrine\ORM\Query\AST;
6
7use Doctrine\ORM\Query\SqlWalker;
8
9/**
10 * UpdateClause ::= "UPDATE" AbstractSchemaName [["AS"] AliasIdentificationVariable] "SET" UpdateItem {"," UpdateItem}*
11 *
12 * @link www.doctrine-project.org
13 */
14class UpdateClause extends Node
15{
16 public string $aliasIdentificationVariable;
17
18 /** @param mixed[] $updateItems */
19 public function __construct(
20 public string $abstractSchemaName,
21 public array $updateItems,
22 ) {
23 }
24
25 public function dispatch(SqlWalker $walker): string
26 {
27 return $walker->walkUpdateClause($this);
28 }
29}