KeyPairException::privateKeyInvalid()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
cc 1
nc 1
nop 0
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the LetsEncrypt ACME client.
7
 *
8
 * @author    Ivanov Aleksandr <[email protected]>
9
 * @copyright 2019-2020
10
 * @license   https://github.com/misantron/letsencrypt-client/blob/master/LICENSE MIT License
11
 */
12
13
namespace LetsEncrypt\Exception;
14
15
final class KeyPairException extends OpenSSLException
16
{
17
    public static function privateKeyDetailsError(): self
18
    {
19
        return new static('Unable to get details from private key');
20
    }
21
22
    public static function privateKeyInvalid(): self
23
    {
24
        return new static('Unable to read private key');
25
    }
26
}
27