| Total Complexity | 4 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Coverage | 72.72% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class RsaKeyPair |
||
| 13 | { |
||
| 14 | private $public_key; |
||
| 15 | private $private_key; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Rsa constructor. |
||
| 19 | * @param $public_key |
||
| 20 | * @param $private_key |
||
| 21 | */ |
||
| 22 | 11 | public function __construct($public_key, $private_key) |
|
| 26 | 11 | } |
|
| 27 | |||
| 28 | /** |
||
| 29 | * @return mixed |
||
| 30 | */ |
||
| 31 | 11 | public function getPublicKey() |
|
| 32 | { |
||
| 33 | 11 | return $this->public_key; |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return mixed |
||
| 38 | */ |
||
| 39 | 11 | public function getPrivateKey() |
|
| 42 | } |
||
| 43 | |||
| 44 | public function toArray() |
||
| 49 | ]; |
||
| 50 | } |
||
| 54 |