Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
10 | public function debug(bool $array = false) |
||
11 | { |
||
12 | if($array){ |
||
13 | return ['query' => $this->lastQuery, 'data' => $this->lastData]; |
||
14 | } |
||
15 | |||
16 | $query = $this->lastQuery; |
||
17 | |||
18 | foreach($this->lastData as $name => $value){ |
||
19 | $query = str_replace(":{$name}","'{$value}'",$query); |
||
20 | } |
||
21 | |||
22 | return $query; |
||
23 | } |
||
28 |