Conditions | 2 |
Paths | 2 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
37 | 5 | protected static function doGenerate(\ReflectionProperty $property): string |
|
38 | { |
||
39 | 5 | $visibility = static::getVisibility($property); |
|
40 | |||
41 | 5 | $static = $property->isStatic() ? 'static' : ''; |
|
42 | |||
43 | 5 | $name = $property->name; |
|
44 | |||
45 | 5 | return sprintf( |
|
46 | 5 | self::TEMPLATE, |
|
47 | $visibility, |
||
48 | $static, |
||
49 | $name |
||
50 | ); |
||
51 | } |
||
52 | } |
||
53 |