Conditions | 3 |
Paths | 3 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 3.0416 |
Changes | 0 |
1 | <?php |
||
26 | 23 | public function create($alias, RpcClientInterface $client, ApiMetadata $metadata) |
|
27 | { |
||
28 | 23 | foreach ($this->delegates as $delegate) { |
|
29 | 23 | if ($delegate->has($alias)) { |
|
30 | 23 | return $delegate->create($alias, $client, $metadata); |
|
31 | } |
||
32 | 23 | } |
|
33 | |||
34 | throw MappingException::unknownApiFactory($alias); |
||
35 | } |
||
36 | |||
57 |