| Total Complexity | 6 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 5 | class Filter |
||
| 6 | { |
||
| 7 | private $rawFilter; |
||
| 8 | |||
| 9 | private $ids; |
||
| 10 | |||
| 11 | private $operator; |
||
| 12 | |||
| 13 | 6 | public static function box(array $params) |
|
| 26 | ]); |
||
| 27 | } |
||
| 28 | |||
| 29 | 6 | private function __construct(array $params) |
|
| 30 | { |
||
| 31 | 6 | $this->rawFilter = $params['raw_filter']; |
|
| 32 | 6 | $this->ids = $params['ids']; |
|
| 33 | 6 | $this->operator = $params['operator']; |
|
| 34 | 6 | $this->path = $params['path']; |
|
|
|
|||
| 35 | 6 | } |
|
| 36 | |||
| 37 | 4 | public function getRawFilter() |
|
| 38 | { |
||
| 39 | 4 | return $this->rawFilter; |
|
| 40 | } |
||
| 41 | |||
| 42 | 6 | public function getIds() |
|
| 43 | { |
||
| 44 | 6 | return $this->ids; |
|
| 45 | } |
||
| 46 | |||
| 47 | 6 | public function getOperator() |
|
| 48 | { |
||
| 49 | 6 | return $this->operator; |
|
| 50 | } |
||
| 51 | |||
| 52 | 1 | public function getPath() |
|
| 55 | } |
||
| 56 | } |
||
| 57 |