| Total Complexity | 3 |
| Total Lines | 20 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Grammar |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * Surrounds a string with backticks by default |
||
| 9 | * @param string|array $reference : a string or an array with 2 elements, the first being the table name and the second the column name |
||
| 10 | * @param string $tick : the character to use for surrounding the string |
||
| 11 | * @return string : the string surrounded by the tick character |
||
| 12 | * |
||
| 13 | */ |
||
| 14 | public static function identifier($reference, $tick='`'): string |
||
| 27 |