1 | <?php |
||
10 | class PoolFactory implements FactoryInterface |
||
11 | { |
||
12 | use FactoryTrait; |
||
13 | |||
14 | /** |
||
15 | * @param array $serverList |
||
16 | * @return Pool |
||
17 | */ |
||
18 | 1 | public function create(array $serverList) |
|
29 | |||
30 | /** |
||
31 | * @param string $server |
||
32 | * @return array |
||
33 | */ |
||
34 | 1 | protected function extractHostAndPort($server) |
|
41 | |||
42 | /** |
||
43 | * @param string $host |
||
44 | * @param int $port |
||
45 | * @return Server |
||
46 | */ |
||
47 | 1 | public function createServer($host, $port) |
|
51 | } |
||
52 |