1: <?php declare(strict_types = 1);
2:
3: namespace ApiGen\Info;
4:
5: use PHPStan\PhpDocParser\Ast\Type\TypeNode;
6:
7:
8: class ConstantInfo extends MemberInfo
9: {
10: /** @var TypeNode|null */
11: public ?TypeNode $type = null;
12:
13: /** @var ExprInfo */
14: public ExprInfo $value;
15:
16: /** @var bool */
17: public bool $final = false;
18:
19:
20: public function __construct(string $name, ExprInfo $value)
21: {
22: parent::__construct($name);
23: $this->value = $value;
24: }
25: }
26: