Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | { |
||
15 | use AnnotationReaderTrait; |
||
16 | |||
17 | public function configureFields(\ReflectionClass $class, ShowMapper $showMapper): void |
||
18 | { |
||
19 | foreach ($class->getProperties() as $property) { |
||
20 | if ($annotation = $this->getPropertyAnnotation($property, ShowField::class)) { |
||
21 | $showMapper->add($property->getName(), ...$annotation->getSettings()); |
||
22 | } |
||
23 | } |
||
24 | |||
25 | foreach ($class->getMethods() as $method) { |
||
32 |