Total Complexity | 9 |
Total Lines | 50 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class Key |
||
9 | { |
||
10 | /** @var string $algorithm */ |
||
11 | private $algorithm; |
||
12 | |||
13 | /** @var string|resource|OpenSSLAsymmetricKey $keyMaterial */ |
||
14 | private $keyMaterial; |
||
15 | |||
16 | /** |
||
17 | * @param string|resource|OpenSSLAsymmetricKey $keyMaterial |
||
18 | * @param string $algorithm |
||
19 | */ |
||
20 | public function __construct($keyMaterial, $algorithm) |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * Return the algorithm valid for this key |
||
44 | * |
||
45 | * @return string |
||
46 | */ |
||
47 | public function getAlgorithm() |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @return string|resource|OpenSSLAsymmetricKey |
||
54 | */ |
||
55 | public function getKeyMaterial() |
||
60 |