Conditions | 3 |
Paths | 3 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
21 | public function getFields(\ReflectionClass $entity): array |
||
22 | { |
||
23 | $properties = []; |
||
24 | |||
25 | foreach ($entity->getProperties() as $property) { |
||
26 | if ($annotation = $this->annotationReader->getPropertyAnnotation($property, ExportField::class)) { |
||
27 | $properties[$annotation->label ?? $property->getName()] = $property->getName(); |
||
28 | } |
||
29 | } |
||
30 | |||
31 | return $properties; |
||
32 | } |
||
43 |