InvalidSignatureException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 21
rs 10
ccs 6
cts 6
cp 1
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getResponseData() 0 3 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