Skip to content

ConstantDoc

One public class constant.

Constants are documented because they turn up as parameter defaults; omitting them would leave those defaults pointing at nothing.

final class ConstantDoc

SourceIr/ConstantDoc.php
PropertyTypeDescription
$docDocBlockreadonly.
$finalboolreadonly.
$namestringreadonly.
$valuestringreadonly.

public function __construct(string $name, string $value, DocBlock $doc, bool $final = false): mixed

ParameterTypeDescription
$namestring
$valuestring
$docDocBlock
$finalbool

Returns mixed