phpDocumentor

EnumAssembler extends AssemblerAbstract
in package

Assembles an EnumDescriptor using an ClassReflector.

Table of Contents

$builder  : ProjectDescriptorBuilder|null
$reducers  : array<string|int, AssemblerReducer>
__construct()  : mixed
create()  : TDescriptor|null
deduplicateTypes()  : Type|null
getBuilder()  : ProjectDescriptorBuilder|null
Returns the builder for this Assembler or null if none is set.
setBuilder()  : void
Registers the Builder with this Assembler.
assembleDocBlock()  : void
Assemble DocBlock.
buildDescriptor()  : TDescriptor|null
extractPackageFromDocBlock()  : string|null
Extracts the package from the DocBlock.
addCases()  : void
addMethods()  : void
Registers the child methods with the generated Class Descriptor.
addUses()  : void
Registers the used traits with the generated Class Descriptor.

Properties

Methods

create()

public create(TInput $data) : TDescriptor|null
Parameters
$data : TInput
Return values
TDescriptor|null

deduplicateTypes()

public static deduplicateTypes(Type|null $type) : Type|null
Parameters
$type : Type|null
Tags
deprecated

the functionality in this method has been moved to the Compound type in the latest unreleased version of the TypeResolver library

Return values
Type|null

buildDescriptor()

protected buildDescriptor(Enum_ $data) : TDescriptor|null
Parameters
$data : Enum_
Return values
TDescriptor|null

extractPackageFromDocBlock()

Extracts the package from the DocBlock.

protected extractPackageFromDocBlock(DocBlock|null $docBlock) : string|null
Parameters
$docBlock : DocBlock|null
Return values
string|null

addCases()

private addCases(array<string|int, EnumCase$cases, EnumDescriptor $descriptor) : void
Parameters
$cases : array<string|int, EnumCase>
$descriptor : EnumDescriptor
Return values
void

addMethods()

Registers the child methods with the generated Class Descriptor.

private addMethods(array<string|int, Method$methods, EnumDescriptor $descriptor) : void
Parameters
$methods : array<string|int, Method>
$descriptor : EnumDescriptor
Return values
void

addUses()

Registers the used traits with the generated Class Descriptor.

private addUses(array<string|int, Fqsen$traits, EnumDescriptor $descriptor) : void
Parameters
$traits : array<string|int, Fqsen>
$descriptor : EnumDescriptor
Return values
void

Search results