Total Complexity | 5 |
Total Lines | 87 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class TableSelectEntity |
||
6 | { |
||
7 | /** |
||
8 | * The table name |
||
9 | * |
||
10 | * @var string |
||
11 | */ |
||
12 | public $table = ''; |
||
13 | |||
14 | /** |
||
15 | * The fields to select |
||
16 | * |
||
17 | * @var array |
||
18 | */ |
||
19 | public $fields = []; |
||
20 | |||
21 | /** |
||
22 | * The where clauses |
||
23 | * |
||
24 | * @var array |
||
25 | */ |
||
26 | public $where = []; |
||
27 | |||
28 | /** |
||
29 | * The group by clauses |
||
30 | * |
||
31 | * @var array |
||
32 | */ |
||
33 | public $group = []; |
||
34 | |||
35 | /** |
||
36 | * The order by clauses |
||
37 | * |
||
38 | * @var array |
||
39 | */ |
||
40 | public $order = []; |
||
41 | |||
42 | /** |
||
43 | * All clauses, formatted |
||
44 | * |
||
45 | * @var string |
||
46 | */ |
||
47 | public $clauses = ''; |
||
48 | |||
49 | /** |
||
50 | * The row limit |
||
51 | * |
||
52 | * @var int |
||
53 | */ |
||
54 | public $limit = 1; |
||
55 | |||
56 | /** |
||
57 | * The page number |
||
58 | * |
||
59 | * @var int |
||
60 | */ |
||
61 | public $page = 0; |
||
62 | |||
63 | /** |
||
64 | * The constructor |
||
65 | * |
||
66 | * @param string $table |
||
67 | * @param array $fields |
||
68 | * @param array $where |
||
69 | * @param array $group |
||
70 | * @param array $order |
||
71 | * @param int $limit |
||
72 | * @param int $page |
||
73 | */ |
||
74 | public function __construct(string $table, array $fields, array $where, |
||
95 |