| Conditions | 2 |
| Paths | 2 |
| Total Lines | 12 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 5 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php declare(strict_types = 1); |
||
| 22 | 6 | public function analyze( |
|
| 23 | DefinitionAnalyzer $analyzer, |
||
| 24 | \ReflectionProperty $reflectionProperty, |
||
| 25 | ClassDefinition $classDefinition, |
||
| 26 | PropertyDefinition $propertyDefinition = null |
||
| 27 | ) { |
||
| 28 | 6 | if ($propertyDefinition) { |
|
| 29 | // Set property metadata |
||
| 30 | 5 | $propertyDefinition->setIsPublic($reflectionProperty->isPublic()); |
|
| 31 | 5 | $propertyDefinition->setModifiers($reflectionProperty->getModifiers()); |
|
| 32 | } |
||
| 33 | 6 | } |
|
| 34 | } |
||
| 35 |