1: | <?php declare(strict_types = 1); |
2: | |
3: | namespace PHPStan\Node; |
4: | |
5: | use PhpParser\NodeAbstract; |
6: | use PHPStan\Analyser\StatementExitPoint; |
7: | |
8: | |
9: | class FinallyExitPointsNode extends NodeAbstract implements VirtualNode |
10: | { |
11: | |
12: | |
13: | |
14: | |
15: | |
16: | public function __construct(private array $finallyExitPoints, private array $tryCatchExitPoints) |
17: | { |
18: | parent::__construct([]); |
19: | } |
20: | |
21: | |
22: | |
23: | |
24: | public function getFinallyExitPoints(): array |
25: | { |
26: | return $this->finallyExitPoints; |
27: | } |
28: | |
29: | |
30: | |
31: | |
32: | public function getTryCatchExitPoints(): array |
33: | { |
34: | return $this->tryCatchExitPoints; |
35: | } |
36: | |
37: | public function getType(): string |
38: | { |
39: | return 'PHPStan_Node_FinallyExitPointsNode'; |
40: | } |
41: | |
42: | |
43: | |
44: | |
45: | public function getSubNodeNames(): array |
46: | { |
47: | return []; |
48: | } |
49: | |
50: | } |
51: | |