| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class KeyManager { |
||
| 8 | |||
| 9 | private $server_key = null; |
||
| 10 | private $client_id = null; |
||
| 11 | private $client_secret = null; |
||
| 12 | |||
| 13 | 8 | public function __construct (array $options) { |
|
| 14 | 8 | $options = array_merge([ |
|
| 15 | 8 | "key" => null, |
|
| 16 | "client_id" => null, |
||
| 17 | "client_secret" => null |
||
| 18 | 8 | ], $options); |
|
| 19 | |||
| 20 | 8 | $this->server_key = $options["key"]; |
|
| 21 | 8 | $this->client_id = $options["client_id"]; |
|
| 22 | 8 | $this->client_secret = $options["client_secret"]; |
|
| 23 | 8 | } |
|
| 24 | |||
| 25 | 8 | public function GetServerKey () : string { |
|
| 30 | } |
||
| 31 | |||
| 32 | } |