PublicKeyFileException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 66.67%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 19
ccs 4
cts 6
cp 0.6667
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getPublicKeyFile() 0 4 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatEET\Cryptography;
4
5
use Exception;
6
use Throwable;
7
8
abstract class PublicKeyFileException extends Exception
9
{
10
11
	/** @var string */
12
	private $publicKeyFile;
13
14 2
	public function __construct(string $message, string $publicKeyFile, ?Throwable $previous = null)
15
	{
16 2
		parent::__construct($message, 0, $previous);
17
18 2
		$this->publicKeyFile = $publicKeyFile;
19 2
	}
20
21
	public function getPublicKeyFile(): string
22
	{
23
		return $this->publicKeyFile;
24
	}
25
26
}
27