1 | <?php |
||
18 | final class ConnectionFactory |
||
19 | { |
||
20 | /** |
||
21 | * @var Client[] |
||
22 | */ |
||
23 | private $clients = []; |
||
24 | |||
25 | /** |
||
26 | * @param string $database |
||
27 | * @param string $host |
||
28 | * @param int $httpPort |
||
29 | * @param int $udpPort |
||
30 | * @param string $user |
||
31 | * @param string $password |
||
32 | * @param bool $udp |
||
33 | * |
||
34 | * @return Database |
||
35 | */ |
||
36 | 3 | public function createConnection( |
|
57 | |||
58 | /** |
||
59 | * @param string $host |
||
60 | * @param int $httpPort |
||
61 | * @param int $udpPort |
||
62 | * @param string $user |
||
63 | * @param string $password |
||
64 | * @param bool $udp |
||
65 | * |
||
66 | * @return Client |
||
67 | */ |
||
68 | 3 | private function createClient( |
|
84 | |||
85 | /** |
||
86 | * @param string $host |
||
87 | * @param int $httpPort |
||
88 | * @param int $udpPort |
||
89 | * @param string $user |
||
90 | * @param string $password |
||
91 | * @param bool $udp |
||
92 | * @param string $clientKey |
||
93 | * |
||
94 | * @return Client |
||
95 | */ |
||
96 | 3 | private function getClientForConfiguration( |
|
115 | } |
||
116 |