Documentation

EnumCase
in package
implements Element, MetaDataContainer, AttributeContainer uses MetadataContainer, HasAttributes

FinalYes

Represents a case in an Enum.

Table of Contents

Interfaces

Element
Interface for Api Elements
MetaDataContainer
AttributeContainer

Properties

$attributes  : array<string|int, Attribute>
$docBlock  : DocBlock|null
$endLocation  : Location
$fqsen  : Fqsen
$location  : Location
$value  : Expression|string|null

Methods

__construct()  : mixed
addAttribute()  : void
getAttributes()  : array<string|int, Attribute>
getDocBlock()  : DocBlock|null
getEndLocation()  : Location
getFqsen()  : Fqsen
Returns the Fqsen of the element.
getLocation()  : Location
getName()  : string
Returns the name of the element.
getValue()  : Expression|string|null
Returns the value for this enum case.

Properties

Methods

getName()

Returns the name of the element.

public getName() : string
Attributes
#[Override]
Return values
string

getValue()

Returns the value for this enum case.

public getValue([bool $asString = true ]) : Expression|string|null
Parameters
$asString : bool = true
Return values
Expression|string|null

        
On this page

Search results