implements |
Builder |
---|
Methods | ||
---|---|---|
public
|
__construct(string|Identifier $name)
|
# |
public
|
setValue(Expr|string|int $value): $this
|
# |
public
|
setDocComment(Doc|string $docComment): $this
|
# |
public
|
addAttribute(Attribute|AttributeGroup $attribute): $this
|
# |
public
|
getNode(): EnumCase
|
# |
Properties | |||
---|---|---|---|
protected
|
Identifier|string
|
$name
|
# |
protected
|
?Expr
|
$value = null
|
# |
protected
|
array<string, mixed>
|
$attributes = []
|
# |
protected
|
list<AttributeGroup>
|
$attributeGroups = []
|
# |