Conditions | 3 |
Paths | 3 |
Total Lines | 5 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
17 | public function configureFields(\ReflectionClass $class, DatagridMapper $datagridMapper): void |
||
18 | { |
||
19 | foreach ($class->getProperties() as $property) { |
||
20 | if ($annotation = $this->getPropertyAnnotation($property, DatagridField::class)) { |
||
21 | $datagridMapper->add($property->getName(), ...$annotation->getSettings()); |
||
22 | } |
||
26 |