Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
16 | public function query(): PDOStatement |
||
17 | { |
||
18 | $query = $this->_conexion->prepare($SentenciaConDatosInterface->sql()); |
||
|
|||
19 | |||
20 | $x=1; |
||
21 | foreach ($SentenciaConDatosInterface->datos() as $value) |
||
22 | { |
||
23 | $query->bindValue($x,$value); |
||
24 | $x++; |
||
25 | } |
||
26 | |||
27 | $query->execute(); |
||
28 | |||
29 | return $query; |
||
30 | } |
||
31 | } |