Skip to content

EnumCaseDoc

One case of an enum, with its backing value when it has one.

final class EnumCaseDoc

SourceIr/EnumCaseDoc.php
PropertyTypeDescription
$backingValue?``stringreadonly.
$docDocBlockreadonly.
$namestringreadonly.

public function __construct(string $name, ?string $backingValue, DocBlock $doc): mixed

ParameterTypeDescription
$namestring
$backingValue?``string
$docDocBlock

Returns mixed