Conditions | 5 |
Paths | 5 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Tests | 7 |
CRAP Score | 5 |
Changes | 0 |
1 | <?php |
||
19 | 4 | public function shouldDecline(Node $parent, Name $name, ClassDependencies $classDependencies): bool |
|
20 | { |
||
21 | // Ignore PHP native accessors |
||
22 | 4 | return ( |
|
23 | 4 | $parent instanceof New_ |
|
24 | 4 | || $parent instanceof StaticCall |
|
25 | 4 | || $parent instanceof ClassMethod |
|
26 | 4 | || $parent instanceof ClassConstFetch |
|
27 | 4 | ) && in_array((string) $name, self::ACCESSORS, true); |
|
28 | } |
||
30 |