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 | \ReflectionMethod $reflectionMethod, |
||
25 | ClassDefinition $classDefinition, |
||
26 | MethodDefinition $methodDefinition = null |
||
27 | ) { |
||
28 | 6 | if ($methodDefinition) { |
|
29 | // Set method metadata |
||
30 | 6 | $methodDefinition->setModifiers($reflectionMethod->getModifiers()); |
|
31 | 6 | $methodDefinition->setIsPublic($reflectionMethod->isPublic()); |
|
32 | } |
||
33 | 6 | } |
|
34 | } |
||
35 |