EnumType
final class EnumType extends ClassLike
Definition of an enum with cases, methods, constants and traits.
Methods
string|null
getType()
No description
setImplements(array $names)
No description
array
getImplements()
No description
addImplement(string $name)
No description
removeImplement(string $name)
No description
array
getCases()
No description
removeCase(string $name)
No description
__clone()
No description
Details
at line 32
EnumType
setType(string|null $type)
No description
at line 39
string|null
getType()
No description
at line 48
EnumType
setImplements(array $names)
No description
at line 57
array
getImplements()
No description
at line 63
EnumType
addImplement(string $name)
No description
at line 71
EnumType
removeImplement(string $name)
No description
at line 82
EnumType
setCases(array $cases)
Sets cases to enum
at line 95
array
getCases()
No description
at line 102
EnumCase
addCase(string $name, Literal|null $value = null)
Adds case to enum
at line 112
EnumType
removeCase(string $name)
No description
at line 119
EnumType
addMember(TraitUse $member)
No description
at line 136
__clone()
No description