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