| 1 | <?php |
||
| 9 | class Openssl |
||
| 10 | { |
||
| 11 | private $cipher; |
||
| 12 | private $algo; |
||
| 13 | private $key; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * Openssl constructor. |
||
| 17 | * |
||
| 18 | * @param string $cipher |
||
| 19 | * @param string $algo |
||
| 20 | * @param string $key |
||
| 21 | */ |
||
| 22 | 1 | public function __construct(string $cipher, string $algo, string $key) |
|
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $data |
||
| 29 | * |
||
| 30 | * @throws Exception |
||
| 31 | * |
||
| 32 | * @return string |
||
| 33 | */ |
||
| 34 | 1 | public function decrypt(string $data): string |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @param string $data |
||
| 41 | * |
||
| 42 | * @throws Exception |
||
| 43 | * |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | 1 | public function encrypt(string $data): string |
|
| 50 | } |
||
| 51 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.