EnumCaseDoc
One case of an enum, with its backing value when it has one.
Synopsis
Section titled “Synopsis”final class EnumCaseDoc
| Source | Ir/EnumCaseDoc.php |
Properties
Section titled “Properties”| Property | Type | Description |
|---|---|---|
$backingValue | ?``string | readonly. |
$doc | DocBlock | readonly. |
$name | string | readonly. |
Constructor
Section titled “Constructor”__construct()
Section titled “__construct()”public function __construct(string $name, ?string $backingValue, DocBlock $doc): mixed
| Parameter | Type | Description |
|---|---|---|
$name | string | |
$backingValue | ?``string | |
$doc | DocBlock |
Returns mixed