Conditions | 3 |
Paths | 4 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 3 |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | 15 | public function convert(Response $response): array |
|
27 | { |
||
28 | $responseArray = [ |
||
29 | 15 | 'delayMillis' => $response->hasDelayMillis() |
|
30 | 3 | ? $response->getDelayMillis()->asInt() |
|
31 | : null, |
||
32 | 15 | 'newScenarioState' => $response->hasNewScenarioState() |
|
33 | 3 | ? $response->getNewScenarioState()->asString() |
|
34 | : null, |
||
35 | 'proxyTo' => null, |
||
36 | 'response' => null, |
||
37 | ]; |
||
38 | |||
39 | 15 | return $responseArray; |
|
40 | } |
||
42 |