| Total Complexity | 5 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class BadRequest extends Exception |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * The http error code supplied in the response. |
||
| 20 | * |
||
| 21 | * @var int|null |
||
| 22 | */ |
||
| 23 | public $httpCode; |
||
| 24 | |||
| 25 | /** |
||
| 26 | * The error code supplied in the response. |
||
| 27 | * |
||
| 28 | * @var string|null |
||
| 29 | */ |
||
| 30 | public $code; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * The error message supplied in the response. |
||
| 34 | * |
||
| 35 | * @var string|null |
||
| 36 | */ |
||
| 37 | public $message; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * BadRequest constructor. |
||
| 41 | * |
||
| 42 | * @param ResponseInterface $response Guzzle response |
||
| 43 | */ |
||
| 44 | public function __construct(ResponseInterface $response) |
||
| 69 |