Conditions | 3 |
Paths | 3 |
Total Lines | 18 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
42 | public function mapField($field, array $input, &$output) |
||
43 | { |
||
44 | $this->guardInvalidArguments($field, $input, $output); |
||
45 | |||
46 | if (!array_key_exists('2#025', $input)) { |
||
47 | return; |
||
48 | } |
||
49 | |||
50 | $collection = new ArrayCollection; |
||
51 | |||
52 | foreach ($input['2#025'] as $keywordData) { |
||
53 | $collection->add( |
||
54 | new Keyword($keywordData) |
||
55 | ); |
||
56 | } |
||
57 | |||
58 | $output = $output->withKeywords($collection); |
||
59 | } |
||
60 | } |
||
61 |