. */ namespace Doctrine\ORM\Query\AST; /** * AST node for the following grammar rule: * * OrderByItem ::= (ResultVariable | StateFieldPathExpression) ["ASC" | "DESC"] * * @author Guilherme Blanco * @author Roman Borschel * @since 2.0 */ class OrderByItem extends Node { private $_expr; private $_asc; private $_desc; public function __construct($expr) { $this->_expr = $expr; } public function getExpression() { return $this->_expr; } public function setAsc($bool) { $this->_asc = $bool; } public function isAsc() { return $this->_asc; } public function setDesc($bool) { $this->_desc = $bool; } public function isDesc() { return $this->_desc; } public function dispatch($sqlWalker) { return $sqlWalker->walkOrderByItem($this); } }