ConstantDoc
One public class constant.
Constants are documented because they turn up as parameter defaults; omitting them would leave those defaults pointing at nothing.
Synopsis
Section titled “Synopsis”final class ConstantDoc
| Source | Ir/ConstantDoc.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$doc | DocBlock | readonly. |
$final | bool | readonly. |
$name | string | readonly. |
$value | string | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $name, string $value, DocBlock $doc, bool $final = false): mixed
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$value | string | |
$doc | DocBlock | |
$final | bool |
Returns mixed