Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.0625 |
Changes | 0 |
1 | <?php |
||
34 | 1 | public function getClient(string $clientIdentifier): Client |
|
35 | { |
||
36 | 1 | if (isset($this->connections[$clientIdentifier])) { |
|
37 | |||
38 | 1 | return $this->connections[$clientIdentifier]; |
|
39 | } |
||
40 | |||
41 | throw new ClientNotFoundException(sprintf('Client for key %s not found', $clientIdentifier)); |
||
42 | } |
||
43 | |||
69 |