Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
25 | 4 | public function analyze( |
|
26 | DefinitionAnalyzer $analyzer, |
||
27 | ClassDefinition $classDefinition, |
||
28 | \ReflectionProperty $reflectionProperty |
||
29 | ) { |
||
30 | 4 | $propertyName = $reflectionProperty->getName(); |
|
31 | // Set property metadata |
||
32 | 4 | if ($classDefinition->hasProperty($propertyName)) { |
|
33 | 3 | $classDefinition->getProperty($propertyName) |
|
34 | 3 | ->setIsPublic($reflectionProperty->isPublic()) |
|
35 | 3 | ->setModifiers($reflectionProperty->getModifiers()); |
|
36 | } |
||
37 | 4 | } |
|
38 | } |
||
39 |