Total Complexity | 5 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class QueryBuilder extends \Doctrine\DBAL\Query\QueryBuilder |
||
6 | { |
||
7 | private string $table; |
||
8 | private Database $db; |
||
9 | |||
10 | public function __construct(Database $db){ |
||
13 | |||
14 | } |
||
15 | |||
16 | public function from($from, $alias = null) : QueryBuilder |
||
17 | { |
||
18 | $this->table = $from; |
||
19 | return $this->add('from', [ |
||
20 | 'table' => $from, |
||
21 | 'alias' => $alias, |
||
22 | ], true); |
||
23 | } |
||
24 | |||
25 | |||
26 | public function get() : Collection |
||
33 | } |
||
34 | |||
35 | public function first() : Model |
||
42 |