Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | public function update(): string |
||
30 | { |
||
31 | $set = ""; |
||
32 | $values = []; |
||
33 | |||
34 | foreach ($this->_valoresAInsertar->valoresAInsertar() as $key => $value) |
||
35 | { |
||
36 | $set = $set. ' ' .$key. ' = ?,'; |
||
37 | array_push($values, $value); |
||
38 | } |
||
39 | |||
40 | $valores = trim($set, ','); |
||
41 | |||
42 | return "UPDATE " . $this->_tabla->tabla(). " SET ".$valores.$this->_donde->donde(); |
||
43 | } |
||
44 | } |