InvalidResponseWithoutFikException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 18
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getResponse() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatEET;
4
5
use Exception;
6
use Throwable;
7
8
class InvalidResponseWithoutFikException extends Exception
9
{
10
11
	/** @var EvidenceResponse */
12
	private $response;
13
14 1
	public function __construct(EvidenceResponse $response, ?Throwable $previous = null)
15
	{
16 1
		parent::__construct('Missing FIK in response', 0, $previous);
17 1
		$this->response = $response;
18 1
	}
19
20
	public function getResponse(): EvidenceResponse
21
	{
22
		return $this->response;
23
	}
24
25
}
26