. */ namespace Doctrine\ORM\Query\AST; /** * SelectExpression ::= IdentificationVariable ["." "*"] | StateFieldPathExpression | * (AggregateExpression | "(" Subselect ")") [["AS"] FieldAliasIdentificationVariable] * * @author Guilherme Blanco * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link http://www.phpdoctrine.org * @since 2.0 * @version $Revision$ */ class SelectExpression extends Node { protected $_expression; protected $_fieldIdentificationVariable; public function __construct($expression, $fieldIdentificationVariable) { $this->_expression = $expression; $this->_fieldIdentificationVariable = $fieldIdentificationVariable; } /* Getters */ public function getExpression() { return $this->_expression; } public function getFieldIdentificationVariable() { return $this->_fieldIdentificationVariable; } public function dispatch($sqlWalker) { return $sqlWalker->walkSelectExpression($this); } }