| Conditions | 5 |
| Paths | 4 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 22 | private function configureFields(\ReflectionClass $class, FormMapper $formMapper, string $action): void |
||
| 23 | { |
||
| 24 | foreach ($class->getProperties() as $property) { |
||
| 25 | foreach ($this->getPropertyAnnotations($property) as $annotation) { |
||
| 26 | if (!$annotation instanceof FormField || $annotation->action === $action) { |
||
| 27 | continue; |
||
| 28 | } |
||
| 29 | |||
| 30 | $formMapper->add($property->getName(), ...$annotation->getSettings()); |
||
|
|
|||
| 31 | } |
||
| 40 |