InvalidResponseWithoutFikException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 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