blob: 3a4e75f7cb83f536b50889e2dae919a93941026e (
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
27
28
29
|
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Query\AST;
use Doctrine\ORM\Query\SqlWalker;
/**
* InstanceOfExpression ::= IdentificationVariable ["NOT"] "INSTANCE" ["OF"] (InstanceOfParameter | "(" InstanceOfParameter {"," InstanceOfParameter}* ")")
* InstanceOfParameter ::= AbstractSchemaName | InputParameter
*
* @link www.doctrine-project.org
*/
class InstanceOfExpression extends Node
{
/** @param non-empty-list<InputParameter|string> $value */
public function __construct(
public string $identificationVariable,
public array $value,
public bool $not = false,
) {
}
public function dispatch(SqlWalker $walker): string
{
return $walker->walkInstanceOfExpression($this);
}
}
|