SigningFailedException::getData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

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