diff --git a/lib/Doctrine/ORM/Query/AST/AggregateExpression.php b/lib/Doctrine/ORM/Query/AST/AggregateExpression.php index 97da4d7a6..13d283233 100644 --- a/lib/Doctrine/ORM/Query/AST/AggregateExpression.php +++ b/lib/Doctrine/ORM/Query/AST/AggregateExpression.php @@ -28,30 +28,15 @@ namespace Doctrine\ORM\Query\AST; */ class AggregateExpression extends Node { - private $_functionName; - private $_pathExpression; - private $_isDistinct = false; // Some aggregate expressions support distinct, eg COUNT + 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 getPathExpression() - { - return $this->_pathExpression; - } - - public function isDistinct() - { - return $this->_isDistinct; - } - - public function getFunctionName() - { - return $this->_functionName; + $this->functionName = $functionName; + $this->pathExpression = $pathExpression; + $this->isDistinct = $isDistinct; } public function dispatch($sqlWalker)