Total Complexity | 5 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
20 | class QueryBuilder implements IQueryBuilder |
||
21 | { |
||
22 | /** |
||
23 | * @return ISelect |
||
24 | */ |
||
25 | 1 | public function select(IColumn|string ...$columns): ISelect |
|
28 | } |
||
29 | |||
30 | /** |
||
31 | * @return IInsert |
||
32 | */ |
||
33 | 1 | public function insert(): IInsert |
|
36 | } |
||
37 | |||
38 | /** |
||
39 | * @param Table|string ...$tables |
||
40 | * |
||
41 | * @return IUpdate |
||
42 | */ |
||
43 | 2 | public function update(Table|string ...$tables): IUpdate |
|
44 | { |
||
45 | 2 | return new Update(...$tables); |
|
46 | } |
||
47 | |||
48 | /** |
||
49 | * @return IDelete |
||
50 | */ |
||
51 | 2 | public function delete(): IDelete |
|
54 | } |
||
55 | |||
56 | /** |
||
57 | * @return ITruncate |
||
58 | */ |
||
59 | 3 | public function truncate(): ITruncate |
|
62 | } |
||
63 | } |
||
64 |