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