| Total Complexity | 2 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 6 | class TestClient extends CustomClient |
||
| 7 | { |
||
| 8 | |||
| 9 | /** |
||
| 10 | * HTTP code |
||
| 11 | * |
||
| 12 | * @var integer |
||
| 13 | */ |
||
| 14 | public $httpCode = 0; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * Getting headers |
||
| 18 | * |
||
| 19 | * @return array |
||
| 20 | */ |
||
| 21 | public function getCommonHeadersPublic(): array |
||
| 24 | } |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Method send request to the URL |
||
| 28 | * |
||
| 29 | * @param string $url |
||
| 30 | * URL |
||
| 31 | * @param array $headers |
||
| 32 | * Headers |
||
| 33 | * @param string $method |
||
| 34 | * Request HTTP Method |
||
| 35 | * @param array $data |
||
| 36 | * Request data |
||
| 37 | * @return array Response body and HTTP code |
||
| 38 | * @codeCoverageIgnore |
||
| 39 | */ |
||
| 40 | protected function sendRequest(string $url, array $headers, string $method, array $data = []): array |
||
| 48 |