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