Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
33 | public function get($number, $query, array $bindings = null, $time = null) |
||
34 | { |
||
35 | // for Laravel/Lumen 5.2+ $query is object and it holds all the data |
||
36 | if ($this->version->min('5.2.0')) { |
||
37 | $bindings = $query->bindings; |
||
38 | $time = $query->time; |
||
39 | $query = $query->sql; |
||
40 | } |
||
41 | |||
42 | return new SqlQuery($number, $query, $bindings, $time); |
||
43 | } |
||
44 | } |
||
45 |