28 lines
471 B
PHP
28 lines
471 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Doctrine\ORM\Query\AST;
|
|
|
|
/**
|
|
* ParenthesisExpression ::= "(" ArithmeticPrimary ")"
|
|
*/
|
|
class ParenthesisExpression extends Node
|
|
{
|
|
/** @var Node */
|
|
public $expression;
|
|
|
|
public function __construct(Node $expression)
|
|
{
|
|
$this->expression = $expression;
|
|
}
|
|
|
|
/**
|
|
* {@inheritDoc}
|
|
*/
|
|
public function dispatch($walker)
|
|
{
|
|
return $walker->walkParenthesisExpression($this);
|
|
}
|
|
}
|