| Total Complexity | 6 | 
| Total Lines | 33 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 13 | abstract class AbstractReader | ||
| 14 | { | ||
| 15 | use AnnotationReaderTrait; | ||
| 16 | |||
| 17 | public function configureFields(\ReflectionClass $class, BaseMapper $baseMapper): void | ||
| 22 | ); | ||
| 23 | } | ||
| 24 | |||
| 25 | protected function findProperties(\ReflectionClass $class): array | ||
| 26 |     { | ||
| 27 | $properties = []; | ||
| 28 | |||
| 29 |         foreach ($class->getProperties() as $property) { | ||
| 30 |             if ($annotation = $this->getPropertyAnnotation($property, $this->getAnnotation())) { | ||
| 31 | $properties[$property->getName()] = $annotation; | ||
| 32 | } | ||
| 33 | } | ||
| 34 | |||
| 35 | return $properties; | ||
| 36 | } | ||
| 37 | |||
| 38 | protected function addPropertiesToMapper(array $properties, BaseMapper $baseMapper): void | ||
| 42 | } | ||
| 43 | } | ||
| 44 | |||
| 45 | abstract protected function getAnnotation(): string; | ||
| 46 | } | ||
| 47 |