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