blob: b540593c7249c1a4110ca46bdab7e045804cb3e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Query\AST;
use Doctrine\ORM\Query\SqlWalker;
/**
* UpdateItem ::= [IdentificationVariable "."] {StateField | SingleValuedAssociationField} "=" NewValue
* NewValue ::= SimpleArithmeticExpression | StringPrimary | DatetimePrimary | BooleanPrimary |
* EnumPrimary | SimpleEntityExpression | "NULL"
*
* @link www.doctrine-project.org
*/
class UpdateItem extends Node
{
public function __construct(public PathExpression $pathExpression, public InputParameter|ArithmeticExpression|null $newValue)
{
}
public function dispatch(SqlWalker $walker): string
{
return $walker->walkUpdateItem($this);
}
}
|