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