Conditions | 2 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
19 | public function insertEx(string $table, array $columns): bool|array |
||
20 | 6 | { |
|
21 | $params = []; |
||
22 | 6 | $sql = $this->queryBuilder()->insertEx($table, $columns, $params); |
|
23 | 6 | ||
24 | $this->setSql($sql)->bindValues($params); |
||
25 | 6 | $this->prepare(false); |
|
26 | 6 | ||
27 | /** @psalm-var array|bool $result */ |
||
28 | $result = $this->queryOne(); |
||
29 | 6 | ||
30 | return is_array($result) ? $result : false; |
||
31 | 6 | } |
|
68 |