Conditions | 3 |
Paths | 3 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
36 | public function toArray(): array |
||
37 | { |
||
38 | $data = parent::toArray(); |
||
39 | foreach($data as $key => $filterItem) { |
||
40 | if($filterItem instanceof FilterItemInterface) { |
||
41 | $data[$key] = [ |
||
42 | 'type' => $filterItem->getType(), |
||
43 | 'value' => $filterItem->getValue() |
||
44 | ]; |
||
45 | } |
||
46 | } |
||
47 | |||
48 | return $data; |
||
49 | } |
||
51 |