| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 1 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | 27 | public function startQuery($sql, ?array $params = null, ?array $types = null) |
|
| 15 | { |
||
| 16 | 27 | parent::startQuery($sql, $params, $types); |
|
| 17 | |||
| 18 | 27 | $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS); |
|
| 19 | |||
| 20 | // skip first since it's always the current method |
||
| 21 | 27 | array_shift($backtrace); |
|
| 22 | |||
| 23 | 27 | $this->queries[$this->currentQuery]['backtrace'] = $backtrace; |
|
| 24 | 27 | } |
|
| 26 |