| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class EcdsaPrivateKey |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * @var mixed Key resource handler |
||
| 13 | */ |
||
| 14 | protected $resource; |
||
| 15 | |||
| 16 | protected ?string $id; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param string $key Key file path or string content |
||
| 20 | * @param string $passphrase Key passphrase |
||
| 21 | * @param string|null $id Key identifier |
||
| 22 | * |
||
| 23 | * @throws InvalidKeyException |
||
| 24 | */ |
||
| 25 | public function __construct(string $key, string $passphrase = '', ?string $id = null) |
||
| 35 | } |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @return mixed |
||
| 39 | */ |
||
| 40 | public function getResource() |
||
| 43 | } |
||
| 44 | |||
| 45 | public function getId(): ?string |
||
| 50 |