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