1 | <?php |
||
8 | class Status extends BaseClass |
||
9 | { |
||
10 | /** @var \Illuminate\Contracts\Config\Repository */ |
||
11 | protected $config; |
||
12 | |||
13 | /** The URI of the action */ |
||
14 | const URI = 'https://api.signere.no/api/Status'; |
||
15 | |||
16 | /** |
||
17 | * Instantiate the class. |
||
18 | * |
||
19 | * @param Client $client |
||
20 | * @param Headers $headers |
||
21 | * @param Config $config |
||
22 | * @param string $environment |
||
23 | */ |
||
24 | 3 | public function __construct(Client $client, Headers $headers, Config $config, $environment = null) |
|
31 | |||
32 | /** |
||
33 | * Returns the UTC time of the server. |
||
34 | * |
||
35 | * @return object |
||
36 | */ |
||
37 | 1 | public function getServerTime() |
|
48 | |||
49 | /** |
||
50 | * Returns the status the server. |
||
51 | * |
||
52 | * @param string $request |
||
53 | * @return object |
||
54 | */ |
||
55 | 1 | public function getServerStatus(string $request = 'test') |
|
70 | } |
||
71 |