Total Complexity | 9 |
Total Lines | 40 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | final class SuffixExtendsRule implements Rule |
||
19 | { |
||
20 | public function __construct( |
||
21 | private readonly string $suffix, |
||
22 | private readonly string $expectedParent, |
||
23 | ) { |
||
24 | } |
||
25 | |||
26 | public function getNodeType(): string |
||
27 | { |
||
28 | return Class_::class; |
||
29 | } |
||
30 | |||
31 | public function processNode(Node $node, Scope $scope): array |
||
58 | } |
||
59 | } |
||
60 |