Conditions | 4 |
Paths | 3 |
Total Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 4 |
Changes | 0 |
1 | <?php |
||
29 | 2 | public function hold(string $column, ...$value): void |
|
30 | { |
||
31 | 2 | if (! empty($value) && $value[0] instanceof Raw) { |
|
32 | 1 | $this->list[$column] = (string)$value[0]; |
|
33 | |||
34 | 1 | return; |
|
35 | } |
||
36 | |||
37 | 2 | $this->list[$column] = ":{$column}"; |
|
38 | 2 | if (! empty($value)) { |
|
39 | 2 | $this->bindings->value($column, ...$value); |
|
40 | } |
||
41 | 2 | } |
|
42 | } |
||
43 |