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