Total Complexity | 6 |
Total Lines | 48 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
11 | abstract class AbstractQuery |
||
12 | { |
||
13 | /** |
||
14 | * @var array |
||
15 | */ |
||
16 | protected $parts = array(); |
||
17 | |||
18 | /** |
||
19 | * Initializes the query instance. |
||
20 | * |
||
21 | * @param array $parts |
||
22 | */ |
||
23 | 30 | public function __construct(array $parts) |
|
26 | 30 | } |
|
27 | |||
28 | /** |
||
29 | * Returns the table name with a specified alias. |
||
30 | * |
||
31 | * @return string |
||
32 | */ |
||
33 | 30 | protected function table() |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * Returns the parameters for the WHERE clause. |
||
51 | * |
||
52 | * @return string |
||
53 | */ |
||
54 | 24 | protected function where() |
|
61 |