Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
76 | * INSERT INTO ... VALUES |
||
77 | * @return string |
||
78 | */ |
||
79 | public function insert() |
||
80 | { |
||
81 | $params = str_split(str_repeat('?', count($this->values))); |
||
82 | return 'INSERT INTO ' . $this->table |
||
83 | . ' (' . implode(',', array_keys($this->values)) . ')' |
||
84 | . ' VALUES (' . implode(', ', $params) . ')'; |
||
85 | } |
||
124 |