. */ namespace Doctrine\ORM\Query\AST; /** * SelectExpression ::= IdentificationVariable ["." "*"] | StateFieldPathExpression | * (AggregateExpression | "(" Subselect ")") [["AS"] ["HIDDEN"] FieldAliasIdentificationVariable] * * @link www.doctrine-project.org * @since 2.0 * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class SelectExpression extends Node { /** * @var mixed */ public $expression; /** * @var string|null */ public $fieldIdentificationVariable; /** * @var bool */ public $hiddenAliasResultVariable; /** * @param mixed $expression * @param string|null $fieldIdentificationVariable * @param bool $hiddenAliasResultVariable */ public function __construct($expression, $fieldIdentificationVariable, $hiddenAliasResultVariable = false) { $this->expression = $expression; $this->fieldIdentificationVariable = $fieldIdentificationVariable; $this->hiddenAliasResultVariable = $hiddenAliasResultVariable; } /** * {@inheritdoc} */ public function dispatch($sqlWalker) { return $sqlWalker->walkSelectExpression($this); } }