Conditions | 3 |
Paths | 4 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
31 | public function __construct($field, $order = null, $dqlAlias = null) |
||
32 | { |
||
33 | $order = ! $order ? self::ASC : strtoupper($order); |
||
34 | |||
35 | if (! in_array($order, self::$validOrder, true)) { |
||
36 | throw new InvalidArgumentException(); |
||
37 | } |
||
38 | |||
39 | $this->order = $order; |
||
40 | |||
41 | parent::__construct($field, $dqlAlias); |
||
42 | } |
||
43 | |||
55 |