Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
15 | 2 | public function call( |
|
16 | Session $session, |
||
17 | Initialize $initialize |
||
18 | ): Features { |
||
19 | 2 | $proto = $session->sendMessage(Message::initialize($initialize)); |
|
20 | 2 | if (!($proto instanceof Features)) { |
|
21 | 1 | throw new UnexpectedResultException("Unexpected response, expecting Features, got " . get_class($proto)); |
|
22 | } |
||
23 | |||
24 | 1 | return $proto; |
|
25 | } |
||
27 |