| Conditions | 3 |
| Paths | 4 |
| Total Lines | 19 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 3 |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | 1 | public function process(PropertyDefinition $propertyDefinition, ClassDefinition $classDefinition, array $propertyData, array $classList): void |
|
| 23 | { |
||
| 24 | 1 | $isDeprecated = $propertyData[PreparationProcessorInterface::DEPRECATED] ?? false; |
|
| 25 | 1 | $description = $propertyData[PreparationProcessorInterface::DESCRIPTION] ?? ''; |
|
| 26 | |||
| 27 | 1 | if ($description) { |
|
| 28 | 1 | $propertyDefinition->addComment($description); |
|
| 29 | } |
||
| 30 | /* |
||
| 31 | $propertyDefinition->addComment( |
||
| 32 | sprintf('@var %s', implode( |
||
| 33 | separator: '|', |
||
| 34 | array: $propertyDefinition->getTypes()) |
||
| 35 | ) |
||
| 36 | ); |
||
| 37 | */ |
||
| 38 | |||
| 39 | 1 | if (false !== $isDeprecated) { |
|
| 40 | 1 | $propertyDefinition->addComment(sprintf('@deprecated %s', $isDeprecated)); |
|
| 41 | } |
||
| 44 |