| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function statement(): string |
||
| 24 | { |
||
| 25 | // Generate the INSERT statement with backticks around the field names |
||
| 26 | $fields = $this->getBindingNames(); |
||
| 27 | $fields = array_keys($fields[$this->table]); |
||
| 28 | |||
| 29 | $fields = '`' . implode('`, `', $fields) . '`'; |
||
| 30 | $bindings = implode(', ', array_keys($this->bindings())); |
||
| 31 | |||
| 32 | return sprintf('INSERT INTO `%s` (%s) VALUES (%s)', $this->table, $fields, $bindings); |
||
| 33 | } |
||
| 35 |