| Conditions | 3 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 41 | public function __construct($sortTarget, $sortDirection) |
||
| 42 | { |
||
| 43 | if ($sortDirection !== self::SORT_ASC && $sortDirection !== self::SORT_DESC) { |
||
| 44 | throw new InvalidArgumentException('Sort direction must be one of SortClause::SORT_ASC or SortClause::SORT_DESC'); |
||
| 45 | } |
||
| 46 | |||
| 47 | $this->direction = $sortDirection; |
||
| 48 | $this->target = $sortTarget; |
||
| 49 | } |
||
| 50 | } |
||
| 51 |