RequestException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 5
c 0
b 0
f 0
dl 0
loc 16
rs 10
ccs 6
cts 6
cp 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResponse() 0 3 1
A __construct() 0 5 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway\Api;
4
5
use RuntimeException;
6
7
abstract class RequestException extends RuntimeException
8
{
9
10
	/** @var Response */
11
	private $response;
12
13 7
	public function __construct(string $message, Response $response)
14
	{
15 7
		parent::__construct($message);
16
17 7
		$this->response = $response;
18 7
	}
19
20 7
	public function getResponse(): Response
21
	{
22 7
		return $this->response;
23
	}
24
25
}
26