| Conditions | 2 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 26 | 3 | public function __construct(Response $response, $code = 0, \Exception $previous = null) |
|
| 27 | { |
||
| 28 | 3 | $this->response = $response; |
|
| 29 | |||
| 30 | 3 | parent::__construct( |
|
| 31 | 3 | Response::$statusTexts[$response->getStatusCode()], |
|
| 32 | 3 | $code ?: $response->getStatusCode(), |
|
| 33 | $previous |
||
| 34 | 3 | ); |
|
| 35 | 3 | } |
|
| 36 | |||
| 61 |