InvalidResponseWithoutFikException::getResponse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

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