| Conditions | 4 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | public function populate(array $data): void |
||
| 20 | { |
||
| 21 | $newData = []; |
||
| 22 | foreach($data as $key => $value) { |
||
| 23 | if(isset($value->type) && isset($value->value)) { |
||
| 24 | $filterItem = new BaseFilterItem(); |
||
| 25 | $filterItem->setType($value->type); |
||
| 26 | $filterItem->setValue($value->value); |
||
| 27 | $newData[$key] = $filterItem; |
||
| 28 | } |
||
| 29 | } |
||
| 30 | parent::populate($newData); |
||
| 31 | } |
||
| 51 |