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