Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
39 | public static function deserialize(array $data) |
||
40 | { |
||
41 | $labels = new Labels(); |
||
42 | foreach ($data['labels'] as $label) { |
||
43 | $labels = $labels->with(new Label( |
||
44 | new LabelName($label['label']), |
||
45 | $label['visibility'] |
||
46 | )); |
||
47 | } |
||
48 | |||
49 | return new static( |
||
50 | $data['organizer_id'], |
||
51 | $labels |
||
52 | ); |
||
53 | } |
||
54 | |||
74 |