Total Complexity | 2 |
Total Lines | 27 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | abstract class Repository |
||
6 | { |
||
7 | /** |
||
8 | * Quotes a literal string. |
||
9 | * This method is NOT meant to fix SQL injections! |
||
10 | * It is only meant to escape this platform's string literal |
||
11 | * quote character inside the given literal string. |
||
12 | * |
||
13 | * @param string $str The literal string to be quoted. |
||
14 | * |
||
15 | * @return string The quoted literal string. |
||
16 | */ |
||
17 | protected function quoteStringLiteral(string $str): string |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * Gets the character used for string literal quoting. |
||
26 | * |
||
27 | * @return string |
||
28 | */ |
||
29 | protected function getStringLiteralQuoteCharacter(): string |
||
34 |