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