| Total Complexity | 5 |
| Total Lines | 39 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class JwtRsaKey implements JwtKeyInterface |
||
| 6 | { |
||
| 7 | protected $private; |
||
| 8 | protected $public; |
||
| 9 | |||
| 10 | /** |
||
| 11 | * JwtRsaKey constructor. |
||
| 12 | * @param $private |
||
| 13 | * @param $public |
||
| 14 | */ |
||
| 15 | 9 | public function __construct($private, $public) |
|
| 16 | { |
||
| 17 | 9 | $this->private = $private; |
|
| 18 | 9 | $this->public = $public; |
|
| 19 | } |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param $private |
||
| 23 | * @param $public |
||
| 24 | * @return JwtRsaKey |
||
| 25 | */ |
||
| 26 | 1 | public static function getInstance($private, $public) |
|
| 27 | { |
||
| 28 | 1 | return new JwtRsaKey($private, $public); |
|
| 29 | } |
||
| 30 | |||
| 31 | 8 | public function getPublicKey() |
|
| 34 | } |
||
| 35 | |||
| 36 | 6 | public function getPrivateKey() |
|
| 39 | } |
||
| 40 | |||
| 41 | 8 | public function getAlghoritm() |
|
| 44 | } |
||
| 45 | } |
||
| 46 |