. */ namespace Doctrine\ORM\Query\AST; /** * Subselect ::= SimpleSelectClause SubselectFromClause [WhereClause] [GroupByClause] [HavingClause] [OrderByClause] * * @link www.doctrine-project.org * @since 2.0 * @author Guilherme Blanco * @author Jonathan Wage * @author Roman Borschel */ class Subselect extends Node { /** * @var SimpleSelectClause */ public $simpleSelectClause; /** * @var SubselectFromClause */ public $subselectFromClause; /** * @var WhereClause|null */ public $whereClause; /** * @var GroupByClause|null */ public $groupByClause; /** * @var HavingClause|null */ public $havingClause; /** * @var OrderByClause|null */ public $orderByClause; /** * @param SimpleSelectClause $simpleSelectClause * @param SubselectFromClause $subselectFromClause */ public function __construct($simpleSelectClause, $subselectFromClause) { $this->simpleSelectClause = $simpleSelectClause; $this->subselectFromClause = $subselectFromClause; } /** * {@inheritdoc} */ public function dispatch($sqlWalker) { return $sqlWalker->walkSubselect($this); } }