Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | static public function createClient(string $uri, string $apiKey, ?string $defaultServer = null): PowerDNSClient |
||
18 | { |
||
19 | $client = new Client($uri, $apiKey); |
||
20 | $pdns = new PowerDNSClient($client); |
||
21 | if ($defaultServer !== null) { |
||
22 | $pdns->setDefaultServerId($defaultServer); |
||
23 | } |
||
24 | |||
25 | return $pdns; |
||
26 | } |
||
27 | } |