| Conditions | 3 |
| Paths | 3 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 41 | private function collectAttributes(ReflectionClass $classMeta): array |
||
| 42 | { |
||
| 43 | $rules = []; |
||
| 44 | foreach ($classMeta->getProperties() as $property) { |
||
| 45 | $attributes = $property->getAttributes(RuleInterface::class, ReflectionAttribute::IS_INSTANCEOF); |
||
| 46 | foreach ($attributes as $attribute) { |
||
| 47 | $rules[$property->getName()][] = $attribute->newInstance(); |
||
| 48 | } |
||
| 49 | } |
||
| 50 | |||
| 51 | return $rules; |
||
| 52 | } |
||
| 54 |