Total Complexity | 13 |
Total Lines | 60 |
Duplicated Lines | 0 % |
Coverage | 48% |
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) |
|
35 | } |
||
36 | |||
37 | public function getAndFilters() |
||
38 | { |
||
39 | return $this->get('filters', []); |
||
40 | } |
||
41 | |||
42 | public function getOrFilters() |
||
43 | { |
||
44 | return $this->get('orFilters', []); |
||
45 | } |
||
46 | |||
47 | public function getSorting() |
||
48 | { |
||
49 | return $this->get('sorting', []); |
||
50 | } |
||
51 | |||
52 | public function getRel() |
||
55 | } |
||
56 | |||
57 | public function getPrinting() |
||
60 | } |
||
61 | |||
62 | public function getSelect() |
||
65 | } |
||
66 | } |
||
67 |