Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
10 | 3 | public static function new() |
|
11 | { |
||
12 | |||
13 | 3 | return new static( |
|
14 | 'A header key must be set in the transitions.php config file array ' . |
||
15 | 3 | 'under the `headerKey` key, to identify a request version.' . PHP_EOL . |
|
16 | 3 | 'see https://github.com/bbrothers/http-transitions#usage for details.' . PHP_EOL . |
|
17 | 3 | "Example: `['headerKey' => 'Api-Version']" |
|
18 | ); |
||
19 | } |
||
20 | } |
||
21 |