| Total Complexity | 2 |
| Total Lines | 16 |
| Duplicated Lines | 0 % |
| Coverage | 66.67% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class NetworkException extends ClientException implements PsrNetworkException |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var RequestInterface |
||
| 17 | */ |
||
| 18 | private $request; |
||
| 19 | |||
| 20 | 15 | public function __construct(RequestInterface $request, string $message = '', int $code = 0, \Throwable $previous = null) |
|
| 21 | { |
||
| 22 | 15 | $this->request = $request; |
|
| 23 | 15 | parent::__construct($message, $code, $previous); |
|
| 24 | 15 | } |
|
| 25 | |||
| 26 | public function getRequest(): RequestInterface |
||
| 29 | } |
||
| 30 | } |
||
| 31 |