blob: 9344cd9c6e9b7558315e230332eab3fc5358e041 (
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
30
31
32
33
34
|
<?php
declare(strict_types=1);
namespace Doctrine\ORM\Query\AST;
use Doctrine\ORM\Query\SqlWalker;
/**
* ConditionalPrimary ::= SimpleConditionalExpression | "(" ConditionalExpression ")"
*
* @link www.doctrine-project.org
*/
class ConditionalPrimary extends Node implements Phase2OptimizableConditional
{
public Node|null $simpleConditionalExpression = null;
public ConditionalExpression|Phase2OptimizableConditional|null $conditionalExpression = null;
public function isSimpleConditionalExpression(): bool
{
return (bool) $this->simpleConditionalExpression;
}
public function isConditionalExpression(): bool
{
return (bool) $this->conditionalExpression;
}
public function dispatch(SqlWalker $walker): string
{
return $walker->walkConditionalPrimary($this);
}
}
|