| Total Complexity | 4 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 0 | ||
| 1 | <?php |
||
| 10 | final class Error |
||
| 11 | { |
||
| 12 | private $url; |
||
| 13 | /** |
||
| 14 | * @var Response |
||
| 15 | 18 | */ |
|
| 16 | private $response; |
||
| 17 | 18 | ||
| 18 | 18 | public function __construct($url, $response) |
|
| 19 | 18 | { |
|
| 20 | $this->url = $url; |
||
| 21 | 12 | $this->response = $response; |
|
| 22 | } |
||
| 23 | 12 | ||
| 24 | public function code() |
||
| 25 | { |
||
| 26 | return $this->response->statusCode; |
||
| 27 | } |
||
| 28 | |||
| 29 | public function getResponse() |
||
| 32 | } |
||
| 33 | 6 | ||
| 34 | public function message() |
||
| 37 | } |
||
| 38 | } |
||
| 39 |