Total Complexity | 5 |
Total Lines | 49 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | trait QueryStack |
||
6 | { |
||
7 | /** |
||
8 | * @return mixed |
||
9 | */ |
||
10 | public function connection() |
||
11 | { |
||
12 | return $this->schema->getConnection(); |
||
13 | } |
||
14 | |||
15 | /** |
||
16 | * @return mixed |
||
17 | */ |
||
18 | public function showTables() |
||
19 | { |
||
20 | return $this->connection()->query('SHOW TABLES')->fetchAll(); |
||
21 | } |
||
22 | |||
23 | /** |
||
24 | * @param $table |
||
25 | * @return mixed |
||
26 | */ |
||
27 | public function showColumnsFrom($table) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param $query |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function setQueryBasic($query) |
||
54 | ]; |
||
55 | } |
||
61 |