. */ namespace Doctrine\ORM\Query\AST; /** * Description of AggregateExpression * * @author robo */ class AggregateExpression extends Node { public $functionName; public $pathExpression; public $isDistinct = false; // Some aggregate expressions support distinct, eg COUNT public function __construct($functionName, $pathExpression, $isDistinct) { $this->functionName = $functionName; $this->pathExpression = $pathExpression; $this->isDistinct = $isDistinct; } public function dispatch($sqlWalker) { return $sqlWalker->walkAggregateExpression($this); } }