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