Documentation

EnumCase
in package
implements Builder

Table of Contents

Interfaces

Builder

Properties

$attributeGroups  : array<int, AttributeGroup>
$attributes  : array<string, mixed>
$name  : Identifier|string
$value  : Expr|null

Methods

__construct()  : mixed
Creates an enum case builder.
addAttribute()  : $this
Adds an attribute group.
getNode()  : EnumCase
Returns the built enum case node.
setDocComment()  : $this
Sets doc comment for the constant.
setValue()  : $this
Sets the value.

Properties

$attributes

protected array<string, mixed> $attributes = []

Methods

getNode()

Returns the built enum case node.

public getNode() : EnumCase
Return values
EnumCase

The built constant node

setDocComment()

Sets doc comment for the constant.

public setDocComment(Doc|string $docComment) : $this
Parameters
$docComment : Doc|string

Doc comment to set

Return values
$this

The builder instance (for fluid interface)

setValue()

Sets the value.

public setValue(Expr|string|int $value) : $this
Parameters
$value : Expr|string|int
Return values
$this

        
On this page

Search results