InvalidSignatureException::getResponseData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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