diff options
Diffstat (limited to 'vendor/doctrine/orm/src/Query/AST/InstanceOfExpression.php')
-rw-r--r-- | vendor/doctrine/orm/src/Query/AST/InstanceOfExpression.php | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/vendor/doctrine/orm/src/Query/AST/InstanceOfExpression.php b/vendor/doctrine/orm/src/Query/AST/InstanceOfExpression.php new file mode 100644 index 0000000..3a4e75f --- /dev/null +++ b/vendor/doctrine/orm/src/Query/AST/InstanceOfExpression.php | |||
@@ -0,0 +1,29 @@ | |||
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 | * InstanceOfExpression ::= IdentificationVariable ["NOT"] "INSTANCE" ["OF"] (InstanceOfParameter | "(" InstanceOfParameter {"," InstanceOfParameter}* ")") | ||
11 | * InstanceOfParameter ::= AbstractSchemaName | InputParameter | ||
12 | * | ||
13 | * @link www.doctrine-project.org | ||
14 | */ | ||
15 | class InstanceOfExpression extends Node | ||
16 | { | ||
17 | /** @param non-empty-list<InputParameter|string> $value */ | ||
18 | public function __construct( | ||
19 | public string $identificationVariable, | ||
20 | public array $value, | ||
21 | public bool $not = false, | ||
22 | ) { | ||
23 | } | ||
24 | |||
25 | public function dispatch(SqlWalker $walker): string | ||
26 | { | ||
27 | return $walker->walkInstanceOfExpression($this); | ||
28 | } | ||
29 | } | ||