\phpDocumentor\Descriptor\Builder\ReflectorEnumAssembler

Assembles an EnumDescriptor using an ClassReflector.

Summary

Methods
Properties
Constants
__construct()
create()
deduplicateTypes()
getBuilder()
setBuilder()
No public properties found
No constants found
buildDescriptor()
assembleDocBlock()
extractPackageFromDocBlock()
$builder
N/A
addMethods()
addUses()
addCases()
$reducers
N/A

Properties

$reducers

$reducers : \phpDocumentor\Descriptor\Builder\AssemblerReducer[]

Type

AssemblerReducer[]

Methods

__construct()

__construct(\phpDocumentor\Descriptor\Builder\AssemblerReducer  ...$reducers) : mixed

Parameters

\phpDocumentor\Descriptor\Builder\AssemblerReducer $reducers variadic

Returns

mixed —

create()

create(\phpDocumentor\Descriptor\Builder\Reflector\TInput  $data) : \phpDocumentor\Descriptor\Builder\Reflector\TDescriptor|null

Parameters

\phpDocumentor\Descriptor\Builder\Reflector\TInput $data

Returns

\phpDocumentor\Descriptor\Builder\Reflector\TDescriptor|null —

deduplicateTypes()

deduplicateTypes(?\phpDocumentor\Reflection\Type  $type) : ?\phpDocumentor\Reflection\Type

Parameters

?\phpDocumentor\Reflection\Type $type

Returns

?\phpDocumentor\Reflection\Type —

getBuilder()

getBuilder() : ?\phpDocumentor\Descriptor\ProjectDescriptorBuilder

Returns the builder for this Assembler or null if none is set.

Returns

?\phpDocumentor\Descriptor\ProjectDescriptorBuilder —

setBuilder()

setBuilder(\phpDocumentor\Descriptor\ProjectDescriptorBuilder  $builder) : void

Registers the Builder with this Assembler.

The Builder may be used to recursively assemble Descriptors using the {@link} method.

Parameters

\phpDocumentor\Descriptor\ProjectDescriptorBuilder $builder

buildDescriptor()

buildDescriptor(\phpDocumentor\Reflection\Php\Enum_  $data) : \phpDocumentor\Descriptor\Builder\Reflector\TDescriptor|null

Parameters

\phpDocumentor\Reflection\Php\Enum_ $data

Returns

\phpDocumentor\Descriptor\Builder\Reflector\TDescriptor|null —

assembleDocBlock()

assembleDocBlock(?\phpDocumentor\Reflection\DocBlock  $docBlock, \phpDocumentor\Descriptor\DescriptorAbstract  $target) : void

Assemble DocBlock.

Parameters

?\phpDocumentor\Reflection\DocBlock $docBlock
\phpDocumentor\Descriptor\DescriptorAbstract $target

extractPackageFromDocBlock()

extractPackageFromDocBlock(?\phpDocumentor\Reflection\DocBlock  $docBlock) : ?string

Extracts the package from the DocBlock.

Parameters

?\phpDocumentor\Reflection\DocBlock $docBlock

Returns

?string —

addMethods()

addMethods(\phpDocumentor\Reflection\Php\Method[]  $methods, \phpDocumentor\Descriptor\EnumDescriptor  $descriptor) : void

Registers the child methods with the generated Class Descriptor.

Parameters

\phpDocumentor\Reflection\Php\Method[] $methods
\phpDocumentor\Descriptor\EnumDescriptor $descriptor

addUses()

addUses(\phpDocumentor\Reflection\Fqsen[]  $traits, \phpDocumentor\Descriptor\EnumDescriptor  $descriptor) : void

Registers the used traits with the generated Class Descriptor.

Parameters

\phpDocumentor\Reflection\Fqsen[] $traits
\phpDocumentor\Descriptor\EnumDescriptor $descriptor

addCases()

addCases(\phpDocumentor\Reflection\Php\EnumCase[]  $cases, \phpDocumentor\Descriptor\EnumDescriptor  $descriptor) : void

Parameters

\phpDocumentor\Reflection\Php\EnumCase[] $cases
\phpDocumentor\Descriptor\EnumDescriptor $descriptor