| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class RequestException extends \Exception implements RequestExceptionInterface |
||
| 13 | { |
||
| 14 | protected $responseCode; |
||
| 15 | |||
| 16 | protected $message; |
||
| 17 | |||
| 18 | protected $type; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * Request exception constructor |
||
| 22 | * |
||
| 23 | * @param string $response json_decoded array with the error response given by the server |
||
| 24 | */ |
||
| 25 | 4 | public function __construct($response) |
|
| 31 | 4 | } |
|
| 32 | |||
| 33 | /** |
||
| 34 | * @inheritdoc |
||
| 35 | */ |
||
| 36 | 1 | public function getResponseCode() |
|
| 37 | { |
||
| 38 | 1 | return $this->responseCode; |
|
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @inheritdoc |
||
| 43 | */ |
||
| 44 | 1 | public function getType() |
|
| 47 | } |
||
| 48 | } |
||
| 49 |