| Conditions | 3 | 
| Paths | 2 | 
| Total Lines | 13 | 
| Code Lines | 8 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 0 | 
| CRAP Score | 12 | 
| Changes | 0 | ||
| 1 | <?php | ||
| 12 | public function load($data, $formName = '') | ||
| 13 |     { | ||
| 14 |         if (isset($data['items'])) { | ||
| 15 | $items = []; | ||
| 16 |             foreach ($data['items'] as $item) { | ||
| 17 | $items[] = $action = new ActionDto(); | ||
| 18 | $action->load($item); | ||
| 19 | } | ||
| 20 | $data['items'] = $items; | ||
| 21 | } | ||
| 22 | |||
| 23 | return $this->setAttributes($data); | ||
| 24 | } | ||
| 25 | |||
| 34 |