1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\Node;
4:
5: use PhpParser\Node\Stmt;
6:
7: /**
8: * @api
9: */
10: final class UnreachableStatementNode extends Stmt implements VirtualNode
11: {
12:
13: public function __construct(private Stmt $originalStatement)
14: {
15: parent::__construct($originalStatement->getAttributes());
16: }
17:
18: public function getOriginalStatement(): Stmt
19: {
20: return $this->originalStatement;
21: }
22:
23: public function getType(): string
24: {
25: return 'PHPStan_Stmt_UnreachableStatementNode';
26: }
27:
28: /**
29: * @return string[]
30: */
31: public function getSubNodeNames(): array
32: {
33: return [];
34: }
35:
36: }
37: