Documentation

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

$cases

private array<string|int, mixed> $cases = []

$constants

private array<string|int, mixed> $constants = []

References to constants defined in this enum.

$fqsen

private Fqsen $fqsen

Full Qualified Structural Element Name

$implements

private array<string|int, mixed> $implements = []

$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

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

getConstants()

Returns the constants of this enum.

public getConstants() : array<string|int, Constant>
Return values
array<string|int, Constant>

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>

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>
Return values
array<string|int, Fqsen>

Search results