Completed
Push — master ( 70be8d...b5e6ba )
by Jan
05:24
created

PublicKeyFileNotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php declare(strict_types = 1);
2
3
namespace SlevomatEET\Cryptography;
4
5
use Throwable;
6
7
class PublicKeyFileNotFoundException extends PublicKeyFileException
8
{
9
10
	public function __construct(string $publicKeyFile, ?Throwable $previous = null)
11
	{
12
		parent::__construct(sprintf(
13
			'Public key could not be loaded from file \'%s\'.',
14
			$publicKeyFile
15
		), $publicKeyFile, $previous);
16
	}
17
18
}
19