. */ /** * HavingClause = "HAVING" ConditionalExpression * * @package Doctrine * @subpackage Query * @author Guilherme Blanco * @author Janne Vanhala * @license http://www.opensource.org/licenses/lgpl-license.php LGPL * @link http://www.phpdoctrine.org * @since 2.0 * @version $Revision$ */ class Doctrine_Query_Production_HavingClause extends Doctrine_Query_Production { protected $_conditionalExpression; public function syntax($paramHolder) { // HavingClause = "HAVING" ConditionalExpression $this->_parser->match(Doctrine_Query_Token::T_HAVING); $this->_conditionalExpression = $this->AST('ConditionalExpression', $paramHolder); } public function buildSql() { return 'HAVING ' . $this->_conditionalExpression->buildSql(); } /** * Visitor support * * @param object $visitor */ public function accept($visitor) { $this->_conditionalExpression->accept($visitor); $visitor->visitHavingClause($this); } /* Getters */ public function getConditionalExpression() { return $this->_conditionalExpression; } }