extends |
Declaration |
---|
Methods | ||
---|---|---|
public
|
__construct(string $name)
|
# |
public
|
setScalarType(string|Identifier $scalarType): $this
|
# |
public
|
implement(Name|string ...$interfaces): $this
|
# |
public
|
addStmt(Stmt|Builder $stmt): $this
|
# |
public
|
addAttribute(Attribute|AttributeGroup $attribute): $this
|
# |
public
|
getNode(): Enum_
|
# |
Methods inherited from PhpParser\Builder\Declaration |
---|
addStmts(), setDocComment() |
Properties | |||
---|---|---|---|
protected
|
string
|
$name
|
# |
protected
|
?Identifier
|
$scalarType = null
|
# |
protected
|
list<Name>
|
$implements = []
|
# |
protected
|
list<TraitUse>
|
$uses = []
|
# |
protected
|
list<EnumCase>
|
$enumCases = []
|
# |
protected
|
list<ClassConst>
|
$constants = []
|
# |
protected
|
list<ClassMethod>
|
$methods = []
|
# |
protected
|
list<AttributeGroup>
|
$attributeGroups = []
|
# |
Properties inherited from PhpParser\Builder\Declaration |
---|
$attributes |