| Conditions | 2 |
| Paths | 2 |
| Total Lines | 18 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 10 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 54 | 9 | public function values(array $data) |
|
| 55 | { |
||
| 56 | 9 | $this->builder->insert($this->table); |
|
| 57 | |||
| 58 | 9 | $index = 0; |
|
| 59 | |||
| 60 | 9 | foreach ($data as $key => $value) |
|
| 61 | { |
||
| 62 | 9 | $this->builder->setParameter($index, $value); |
|
| 63 | |||
| 64 | 9 | $data[$key] = '?'; |
|
| 65 | |||
| 66 | 9 | $index = $index + 1; |
|
| 67 | 6 | } |
|
| 68 | |||
| 69 | 9 | $this->builder->add('values', /** @scrutinizer ignore-type */ $data); |
|
| 70 | |||
| 71 | 9 | return $this->query->builder($this->builder); |
|
| 72 | } |
||
| 74 |