| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 20 | public function create(string $columnName, string $typeName, $data, array $options): CellViewInterface |
||
| 21 | { |
||
| 22 | $resolver = new OptionsResolver(); |
||
| 23 | $resolver->setDefault('column_name', $columnName); |
||
| 24 | $type = $this->registry->get($typeName); |
||
| 25 | $type->configureOptions($resolver); |
||
| 26 | |||
| 27 | $options = $resolver->resolve($options); |
||
| 28 | |||
| 29 | return $type->createView($data, $options); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |