| Total Complexity | 3 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class FormTypeReader implements ReaderInterface |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @inheritdoc |
||
| 11 | */ |
||
| 12 | 2 | public function read(FormInterface $form): array |
|
| 13 | { |
||
| 14 | 2 | $config = $form->getConfig(); |
|
| 15 | 2 | if (false === $config->hasOption('constraints')) { |
|
| 16 | 1 | return []; |
|
| 17 | } |
||
| 18 | |||
| 19 | 1 | return $config->getOption('constraints'); |
|
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @inheritdoc |
||
| 24 | * |
||
| 25 | * @codeCoverageIgnore |
||
| 26 | */ |
||
| 27 | public function getPriority(): int |
||
| 30 | } |
||
| 31 | } |
||
| 32 |