| Conditions | 3 |
| Paths | 3 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 3 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 1 | public function process(PropertyDefinition $propertyDefinition, ClassDefinition $classDefinition, array $propertyData, array $classList): void |
|
| 23 | { |
||
| 24 | 1 | $types = $propertyDefinition->getTypes(); |
|
| 25 | |||
| 26 | 1 | foreach ($types as $pos => $type) { |
|
| 27 | 1 | if (mb_strtolower($type) !== mb_strtolower(ClassMetadataHelperInterface::PROPERTY_TYPE_ABSTRACT)) { |
|
| 28 | 1 | continue; |
|
| 29 | } |
||
| 30 | |||
| 31 | 1 | $types[$pos] = ClassMetadataHelperInterface::PROPERTY_TYPE_ABSTRACT_CLASS; |
|
| 32 | 1 | $classDefinition->addUseStatement(ClassMetadataHelperInterface::PROPERTY_TYPE_ABSTRACT_CLASS); |
|
| 33 | } |
||
| 34 | |||
| 35 | 1 | $propertyDefinition->setTypes(array_unique($types)); |
|
| 36 | } |
||
| 38 |