| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | 4 | public function renderBlock(FieldInterface $field, DOMElement $element) |
|
| 24 | { |
||
| 25 | 4 | if (!$field instanceof Select) { |
|
| 26 | 1 | throw new InvalidArgumentException('Must be a Del\Form\Field\Select'); |
|
| 27 | } |
||
| 28 | 3 | foreach ($field->getOptions() as $value => $label) { |
|
| 29 | 3 | $option = $this->processOption($field, $value, $label); |
|
| 30 | 3 | $element->appendChild($option); |
|
| 31 | 3 | } |
|
| 32 | 3 | return $element; |
|
| 33 | } |
||
| 34 | |||
| 52 | } |