| Total Complexity | 4 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class OrderList extends AbstractList |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * {@inheritdoc} |
||
| 9 | */ |
||
| 10 | protected $partPrefix = 'ORDER BY'; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * {@inheritdoc} |
||
| 14 | */ |
||
| 15 | protected $separator = ','; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Magic method __invoke, used when the user call object like a function |
||
| 19 | * @link http://php.net/manual/en/language.oop5.magic.php#object.invoke |
||
| 20 | * |
||
| 21 | * @param string $expr The expression to use into the order |
||
| 22 | * @param string $sort The sort order : ASC or DESC |
||
| 23 | * |
||
| 24 | * @return void |
||
| 25 | */ |
||
| 26 | public function __invoke(string $expr, $sort = 'ASC') |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function generate(): string |
||
| 49 |