1 | <?php |
||
19 | class TransIPFactory |
||
20 | { |
||
21 | /** |
||
22 | * Make a new TransIP client. |
||
23 | * |
||
24 | * @param array $config |
||
25 | * |
||
26 | * @return \TransIP\Client |
||
27 | */ |
||
28 | public function create(array $config) |
||
34 | |||
35 | /** |
||
36 | * Get the configuration data. |
||
37 | * |
||
38 | * @param string[] $config |
||
39 | * |
||
40 | * @throws \InvalidArgumentException |
||
41 | * |
||
42 | * @return array |
||
43 | */ |
||
44 | protected function getConfig(array $config) |
||
52 | |||
53 | /** |
||
54 | * Get the TransIP client. |
||
55 | * |
||
56 | * @param string[] $config |
||
57 | * |
||
58 | * @return \TransIP\Client |
||
59 | */ |
||
60 | protected function getClient(array $config) |
||
69 | } |
||
70 |