Enum_
in package
implements
Element, MetaDataContainer
Uses
MetadataContainer
Interfaces, Classes and Traits
- Element
- Interface for Api Elements
- MetaDataContainer
Table of Contents
- $backedType : Type|null
- $cases : array<string|int, mixed>
- $constants : array<string|int, mixed>
- $docBlock : DocBlock|null
- $endLocation : Location
- $fqsen : Fqsen
- $implements : array<string|int, mixed>
- $location : Location
- $methods : array<string|int, mixed>
- $usedTraits : array<string|int, mixed>
- __construct() : mixed
- addCase() : void
- addConstant() : void
- Add Constant to this enum.
- addInterface() : void
- Add an interface Fqsen this enum is implementing.
- addMethod() : void
- Add a method to this enum.
- addUsedTrait() : void
- Add trait fqsen used by this enum.
- getBackedType() : Type|null
- getCases() : array<string|int, EnumCase>
- getConstants() : array<string|int, Constant>
- Returns the constants of this enum.
- getDocBlock() : DocBlock|null
- getEndLocation() : Location
- getFqsen() : Fqsen
- Returns the Fqsen of the element.
- getInterfaces() : array<string|int, Fqsen>
- Returns the interfaces this enum is implementing.
- getLocation() : Location
- getMethods() : array<string|int, Method>
- Returns the methods of this enum.
- getName() : string
- Returns the name of the element.
- getUsedTraits() : array<string|int, Fqsen>
- Returns the traits used by this enum.
Properties
$backedType
private
Type|null
$backedType
$cases
private
array<string|int, mixed>
$cases
= []
$constants
private
array<string|int, mixed>
$constants
= []
References to constants defined in this enum.
$docBlock
private
DocBlock|null
$docBlock
$endLocation
private
Location
$endLocation
$fqsen
private
Fqsen
$fqsen
Full Qualified Structural Element Name
$implements
private
array<string|int, mixed>
$implements
= []
$location
private
Location
$location
$methods
private
array<string|int, mixed>
$methods
= []
$usedTraits
private
array<string|int, mixed>
$usedTraits
= []
Methods
__construct()
public
__construct(Fqsen $fqsen, Type|null $backedType[, DocBlock|null $docBlock = null ][, Location|null $location = null ][, Location|null $endLocation = null ]) : mixed
Parameters
- $fqsen : Fqsen
- $backedType : Type|null
- $docBlock : DocBlock|null = null
- $location : Location|null = null
- $endLocation : Location|null = null
Return values
mixed —addCase()
public
addCase(EnumCase $case) : void
Parameters
- $case : EnumCase
Return values
void —addConstant()
Add Constant to this enum.
public
addConstant(Constant $constant) : void
Parameters
- $constant : Constant
Return values
void —addInterface()
Add an interface Fqsen this enum is implementing.
public
addInterface(Fqsen $interface) : void
Parameters
- $interface : Fqsen
Return values
void —addMethod()
Add a method to this enum.
public
addMethod(Method $method) : void
Parameters
- $method : Method
Return values
void —addUsedTrait()
Add trait fqsen used by this enum.
public
addUsedTrait(Fqsen $fqsen) : void
Parameters
- $fqsen : Fqsen
Return values
void —getBackedType()
public
getBackedType() : Type|null
Return values
Type|null —getCases()
public
getCases() : array<string|int, EnumCase>
Return values
array<string|int, EnumCase> —getConstants()
Returns the constants of this enum.
public
getConstants() : array<string|int, Constant>
Return values
array<string|int, Constant> —getDocBlock()
public
getDocBlock() : DocBlock|null
Return values
DocBlock|null —getEndLocation()
public
getEndLocation() : Location
Return values
Location —getFqsen()
Returns the Fqsen of the element.
public
getFqsen() : Fqsen
Return values
Fqsen —getInterfaces()
Returns the interfaces this enum is implementing.
public
getInterfaces() : array<string|int, Fqsen>
Return values
array<string|int, Fqsen> —getLocation()
public
getLocation() : Location
Return values
Location —getMethods()
Returns the methods of this enum.
public
getMethods() : array<string|int, Method>
Return values
array<string|int, Method> —getName()
Returns the name of the element.
public
getName() : string
Return values
string —getUsedTraits()
Returns the traits used by this enum.
public
getUsedTraits() : array<string|int, Fqsen>