| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| 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 | 1 | return $this->connections[$clientIdentifier]; |
|
| 38 | } |
||
| 39 | |||
| 40 | throw new ClientNotFoundException(sprintf('Client for key %s not found', $clientIdentifier)); |
||
| 41 | } |
||
| 42 | |||
| 68 |