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