123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960 |
- <?php
-
-
- namespace Doctrine\ORM\Query\AST;
-
-
- class OrderByItem extends Node
- {
- public $expression;
- public $type;
-
- public function __construct($expression)
- {
- $this->expression = $expression;
- }
-
- public function isAsc()
- {
- return strtoupper($this->type) == 'ASC';
- }
-
- public function isDesc()
- {
- return strtoupper($this->type) == 'DESC';
- }
-
- public function dispatch($sqlWalker)
- {
- return $sqlWalker->walkOrderByItem($this);
- }
- }
|