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