1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\PhpDocParser\Ast;
4:
5: /**
6: * Inspired by https://github.com/nikic/PHP-Parser/tree/36a6dcd04e7b0285e8f0868f44bd4927802f7df1
7: *
8: * Copyright (c) 2011, Nikita Popov
9: * All rights reserved.
10: */
11: abstract class AbstractNodeVisitor implements NodeVisitor // phpcs:ignore SlevomatCodingStandard.Classes.SuperfluousAbstractClassNaming.SuperfluousPrefix
12: {
13:
14: public function beforeTraverse(array $nodes): ?array
15: {
16: return null;
17: }
18:
19: public function enterNode(Node $node)
20: {
21: return null;
22: }
23:
24: public function leaveNode(Node $node)
25: {
26: return null;
27: }
28:
29: public function afterTraverse(array $nodes): ?array
30: {
31: return null;
32: }
33:
34: }
35: