Total Complexity | 2 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class Secure |
||
11 | { |
||
12 | const ERR_NO_DATABASE_CONNECTED = 2702001; |
||
13 | |||
14 | /** |
||
15 | * Protect datas with sql protect method |
||
16 | * |
||
17 | * @param string $datas Datas to protect |
||
18 | * |
||
19 | * @return string |
||
20 | * |
||
21 | * @throw \Exception If no database connected |
||
22 | */ |
||
23 | public static function protectDatas(string $datas): string |
||
40 |