SigningFailedException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 25
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getData() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatEET\Cryptography;
4
5
use Exception;
6
7
class SigningFailedException extends Exception
8
{
9
10
	/** @var mixed[] */
11
	private $data;
12
13
	/**
14
	 * @param mixed[] $data
15
	 */
16 1
	public function __construct(array $data)
17
	{
18 1
		parent::__construct('Signing failed');
19
20 1
		$this->data = $data;
21 1
	}
22
23
	/**
24
	 * @return mixed[]
25
	 */
26 1
	public function getData(): array
27
	{
28 1
		return $this->data;
29
	}
30
31
}
32