| Total Complexity | 4 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class HetznerCloud |
||
| 14 | { |
||
| 15 | public static $baseHost = "https://api.hetzner.cloud/v1/"; |
||
| 16 | public static $authenticationToken; |
||
| 17 | |||
| 18 | private static $client; |
||
| 19 | |||
| 20 | public static function __callStatic($name, $arguments) |
||
| 21 | { |
||
| 22 | return (new static())->getClient()->{$name}(...$arguments)->json(); |
||
| 23 | } |
||
| 24 | |||
| 25 | private function getClient(){ |
||
| 27 | } |
||
| 28 | |||
| 29 | private function setClient(){ |
||
| 39 | } |
||
| 40 | } |