| Total Complexity | 2 |
| Total Lines | 18 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 8 | abstract class AbstractRule implements RuleInterface, VisitorInterface |
||
| 9 | { |
||
| 10 | use ContextAwareTrait; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @inheritdoc |
||
| 14 | */ |
||
| 15 | public function enterNode(NodeInterface $node): ?NodeInterface |
||
| 16 | { |
||
| 17 | return $node; |
||
| 18 | } |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @inheritdoc |
||
| 22 | */ |
||
| 23 | public function leaveNode(NodeInterface $node): ?NodeInterface |
||
| 26 | } |
||
| 27 | } |
||
| 28 |