Guides

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

FinalYes

Represents a case in an Enum.

Table of Contents

Interfaces

Element
MetaDataContainer
AttributeContainer

Properties

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

Methods

__construct()  : mixed
addAttribute()  : void
getAttributes()  : array<string|int, Attribute>
getDocBlock()  : DocBlock|null
getEndLocation()  : Location
getFqsen()  : Fqsen
getLocation()  : Location
getName()  : string
getValue()  : string|null

Properties

$docBlock read-only

private DocBlock|null $docBlock

$endLocation read-only

private Location $endLocation

$location read-only

private Location $location

$value read-only

private string|null $value = null

Methods

__construct()

public __construct(Fqsen $fqsen, DocBlock|null $docBlock[, Location|null $location = null ][, Location|null $endLocation = null ][, string|null $value = null ]) : mixed
Parameters
$fqsen : Fqsen
$docBlock : DocBlock|null
$location : Location|null = null
$endLocation : Location|null = null
$value : string|null = null

getDocBlock()

public getDocBlock() : DocBlock|null
Return values
DocBlock|null

getEndLocation()

public getEndLocation() : Location
Return values
Location

getFqsen()

public getFqsen() : Fqsen
Attributes
#[Override]
Return values
Fqsen

getLocation()

public getLocation() : Location
Return values
Location

getName()

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

getValue()

public getValue() : string|null
Return values
string|null

        
On this page

Search results