Total Complexity | 11 |
Total Lines | 54 |
Duplicated Lines | 0 % |
Coverage | 23.81% |
Changes | 0 |
1 | <?php |
||
5 | class QueryBuilderOptions |
||
6 | { |
||
7 | private $options; |
||
8 | |||
9 | 4 | private function __construct(array $options) |
|
10 | { |
||
11 | 4 | $this->options = $options; |
|
12 | 4 | } |
|
13 | |||
14 | 4 | public static function fromArray(array $options) |
|
17 | } |
||
18 | |||
19 | public function get($option, $defaultValue = null) |
||
29 | } |
||
30 | |||
31 | public function getAndFilters() |
||
32 | { |
||
33 | return $this->get('filters', []); |
||
34 | } |
||
35 | |||
36 | public function getOrFilters() |
||
37 | { |
||
38 | return $this->get('orFilters', []); |
||
39 | } |
||
40 | |||
41 | public function getSorting() |
||
42 | { |
||
43 | return $this->get('sorting', []); |
||
44 | } |
||
45 | |||
46 | public function getRel() |
||
49 | } |
||
50 | |||
51 | public function getPrinting() |
||
54 | } |
||
55 | |||
56 | public function getSelect() |
||
59 | } |
||
60 | } |
||
61 |