Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
14 | final class ConnectionFactory |
||
15 | { |
||
16 | /** @var ClientRegistry */ |
||
17 | private $clientRegistry; |
||
18 | |||
19 | /** |
||
20 | * ConnectionFactory constructor. |
||
21 | 11 | * |
|
22 | * @param ClientRegistry $clientRegistry |
||
23 | 11 | */ |
|
24 | 11 | public function __construct(ClientRegistry $clientRegistry) |
|
27 | } |
||
28 | |||
29 | /** |
||
30 | * @param string $clientName |
||
31 | * @param string $databaseName |
||
32 | 11 | * |
|
33 | * @return Database |
||
34 | 11 | */ |
|
35 | 11 | public function createConnection(string $clientName, string $databaseName): Database |
|
42 |