| Conditions | 1 |
| Paths | 1 |
| Total Lines | 21 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | public static function create(): InvalidOrderAdapter |
||
| 8 | { |
||
| 9 | return new self( |
||
| 10 | 'The `order` adapter requires following configuration: `variable`, `field` and `direction` optionally.', |
||
| 11 | <<<MD |
||
| 12 | Take a look at the following example. |
||
| 13 | |||
| 14 | ```yaml |
||
| 15 | /page |
||
| 16 | # ... |
||
| 17 | variables: |
||
| 18 | posts: src/blog.yaml |
||
| 19 | config: |
||
| 20 | order: |
||
| 21 | variable: posts |
||
| 22 | field: date |
||
| 23 | direction: desc|asc |
||
| 24 | ``` |
||
| 25 | MD |
||
| 26 | ); |
||
| 27 | } |
||
| 28 | } |
||
| 29 |