Total Complexity | 11 |
Total Lines | 51 |
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) |
|
15 | { |
||
16 | 4 | return new self($options); |
|
17 | } |
||
18 | |||
19 | public function get($option, $defaultValue = null) |
||
26 | } |
||
27 | |||
28 | public function getFilters() |
||
29 | { |
||
30 | return $this->get('filters', []); |
||
31 | } |
||
32 | |||
33 | public function getOrFiltering() |
||
34 | { |
||
35 | return $this->get('orFiltering', []); |
||
36 | } |
||
37 | |||
38 | public function getSorting() |
||
39 | { |
||
40 | return $this->get('sorting', []); |
||
41 | } |
||
42 | |||
43 | public function getRel() |
||
46 | } |
||
47 | |||
48 | public function getPrinting() |
||
51 | } |
||
52 | |||
53 | public function getSelect() |
||
56 | } |
||
57 | } |
||
58 |