| Total Complexity | 2 |
| Total Lines | 21 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | class PingHandler extends AbstractHandler |
||
| 19 | { |
||
| 20 | const API_ENDPOINT = '/rest/ping'; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return string |
||
| 24 | */ |
||
| 25 | 49 | public function ping(): string |
|
| 26 | { |
||
| 27 | 49 | $getParameters = []; |
|
| 28 | 49 | $postParameters = []; |
|
| 29 | 49 | $response = $this->processRequest($getParameters, $postParameters); |
|
| 30 | 7 | return $response->data; |
|
| 31 | } |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @return string |
||
| 35 | */ |
||
| 36 | 7 | protected function getApiEndpoint(): string |
|
| 39 | } |
||
| 40 | } |
||
| 41 |