1: <?php declare(strict_types = 1);
2:
3: namespace PHPStan\PhpDocParser\Ast\Type;
4:
5: use PHPStan\PhpDocParser\Ast\ConstExpr\ConstExprNode;
6: use PHPStan\PhpDocParser\Ast\NodeAttributes;
7:
8: class ConstTypeNode implements TypeNode
9: {
10:
11: use NodeAttributes;
12:
13: /** @var ConstExprNode */
14: public $constExpr;
15:
16: public function __construct(ConstExprNode $constExpr)
17: {
18: $this->constExpr = $constExpr;
19: }
20:
21: public function __toString(): string
22: {
23: return $this->constExpr->__toString();
24: }
25:
26: }
27: