| Conditions | 2 |
| Paths | 2 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 16 | public function __construct(array $options = []) |
||
| 17 | { |
||
| 18 | $field = $options['form_field_factory'] ?? []; |
||
| 19 | $manager = $options['data_manager_factory'] ?? []; |
||
| 20 | $controller = $options['controller'] ?? null; |
||
| 21 | |||
| 22 | $this->formFieldFactory = $this->createFormFieldFactory($field); |
||
| 23 | $this->dataManagerFactory = $this->createDataManagerFactory($manager); |
||
| 24 | |||
| 25 | if (isset($controller)) { |
||
| 26 | $this->controller = $controller; |
||
| 27 | } |
||
| 52 |