InvalidSignatureException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 4
rs 10
ccs 3
cts 3
cp 1
crap 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatCsobGateway\Api;
4
5
use RuntimeException;
6
7
class InvalidSignatureException extends RuntimeException
8
{
9
10
	/** @var mixed[] */
11
	private $responseData;
12
13
	/**
14
	 * @param mixed[] $responseData
15
	 */
16 2
	public function __construct(array $responseData)
17
	{
18 2
		parent::__construct('Invalid signature.');
19 2
		$this->responseData = $responseData;
20 2
	}
21
22
	/**
23
	 * @return mixed[]
24
	 */
25 2
	public function getResponseData(): array
26
	{
27 2
		return $this->responseData;
28
	}
29
30
}
31