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