| Total Complexity | 3 |
| Total Lines | 35 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | abstract class CryptoKeypairAbstract implements CryptoKeypairInterface{ |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @var string |
||
| 25 | */ |
||
| 26 | protected $keypair; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * @var string |
||
| 30 | */ |
||
| 31 | protected $secret; |
||
| 32 | |||
| 33 | /** |
||
| 34 | * @var string |
||
| 35 | */ |
||
| 36 | protected $public; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * CryptoKeypairAbstract constructor. |
||
| 40 | * |
||
| 41 | * @param string|null $secret_bin |
||
| 42 | * @param string|null $public_bin |
||
| 43 | */ |
||
| 44 | public function __construct(string $secret_bin = null, string $public_bin = null){ |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @param string $property |
||
| 51 | * |
||
| 52 | * @return mixed|null |
||
| 53 | */ |
||
| 54 | public function __get(string $property){ |
||
| 59 |