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