phpDocumentor

FileAssembler extends AssemblerAbstract
in package

Assembles an FileDescriptor using an FileReflector and ParamDescriptors.

Table of Contents

Properties

$builder  : ProjectDescriptorBuilder|null
$reducers  : array<string|int, AssemblerReducer>

Methods

__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.
addClasses()  : void
Registers the child classes with the generated File Descriptor.
addConstants()  : void
Registers the child constants with the generated File Descriptor.
addFunctions()  : void
Registers the child functions with the generated File Descriptor.
addInterfaces()  : void
Registers the child interfaces with the generated File Descriptor.
addTraits()  : void
Registers the child traits with the generated File Descriptor.
assembleDocBlock()  : void
Assemble DocBlock.
buildDescriptor()  : TDescriptor|null
extractPackageFromDocBlock()  : string|null
Extracts the package from the DocBlock.
overridePackageTag()  : void
addEnums()  : void
Registers the child classes with the generated File 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

addClasses()

Registers the child classes with the generated File Descriptor.

protected addClasses(array<string|int, Class_$classes, FileInterface $fileDescriptor) : void
Parameters
$classes : array<string|int, Class_>
$fileDescriptor : FileInterface

addConstants()

Registers the child constants with the generated File Descriptor.

protected addConstants(array<string|int, Constant$constants, FileInterface $fileDescriptor) : void
Parameters
$constants : array<string|int, Constant>
$fileDescriptor : FileInterface

addFunctions()

Registers the child functions with the generated File Descriptor.

protected addFunctions(array<string|int, Function_$functions, FileInterface $fileDescriptor) : void
Parameters
$functions : array<string|int, Function_>
$fileDescriptor : FileInterface

addInterfaces()

Registers the child interfaces with the generated File Descriptor.

protected addInterfaces(array<string|int, Interface_$interfaces, FileInterface $fileDescriptor) : void
Parameters
$interfaces : array<string|int, Interface_>
$fileDescriptor : FileInterface

addTraits()

Registers the child traits with the generated File Descriptor.

protected addTraits(array<string|int, Trait_$traits, FileInterface $fileDescriptor) : void
Parameters
$traits : array<string|int, Trait_>
$fileDescriptor : FileInterface

buildDescriptor()

protected buildDescriptor(TInput $data) : TDescriptor|null
Parameters
$data : TInput
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

addEnums()

Registers the child classes with the generated File Descriptor.

private addEnums(array<string|int, Enum_$enums, FileInterface $fileDescriptor) : void
Parameters
$enums : array<string|int, Enum_>
$fileDescriptor : FileInterface

        
On this page

Search results