| Total Complexity | 2 |
| Total Lines | 19 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types = 1); |
||
| 9 | class PrivateKeyFileException extends RuntimeException |
||
| 10 | { |
||
| 11 | |||
| 12 | /** @var string */ |
||
| 13 | private $privateKeyFile; |
||
| 14 | |||
| 15 | 1 | public function __construct(string $privateKeyFile, ?Throwable $previous = null) |
|
| 16 | { |
||
| 17 | 1 | parent::__construct(sprintf( |
|
| 18 | 1 | 'Private key could not be loaded from file \'%s\'. Please make sure that the file contains valid private key in PEM format.', |
|
| 19 | 1 | $privateKeyFile |
|
| 20 | 1 | ), 0, $previous); |
|
| 21 | |||
| 22 | 1 | $this->privateKeyFile = $privateKeyFile; |
|
| 23 | 1 | } |
|
| 24 | |||
| 25 | 1 | public function getPrivateKeyFile(): string |
|
| 28 | } |
||
| 29 | |||
| 31 |