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