TraitAssembler

Extends \phpDocumentor\Descriptor\Builder\Reflector\AssemblerAbstract

Assembles an TraitDescriptor using an TraitReflector.

package

Default

Methods

Registers the child methods with the generated Trait Descriptor.

addMethods(array<mixed,\phpDocumentor\Reflection\ClassReflector\MethodReflector> $methods, \phpDocumentor\Descriptor\TraitDescriptor $traitDescriptor) : void

Arguments

$methods

array<mixed,\phpDocumentor\Reflection\ClassReflector\MethodReflector>

Registers the child properties with the generated Trait Descriptor.

addProperties(array<mixed,\phpDocumentor\Reflection\ClassReflector\PropertyReflector> $properties, \phpDocumentor\Descriptor\TraitDescriptor $traitDescriptor) : void

Arguments

$properties

array<mixed,\phpDocumentor\Reflection\ClassReflector\PropertyReflector>

Assemble DocBlock.

assembleDocBlock(\phpDocumentor\Reflection\DocBlock|null $docBlock, \phpDocumentor\Descriptor\DescriptorAbstract $target) : void
inherited

Arguments

$docBlock

\phpDocumentor\Reflection\DocBlock|null

Creates a Descriptor from the provided data.

create(\phpDocumentor\Reflection\TraitReflector $data) : \phpDocumentor\Descriptor\TraitDescriptor

Arguments

$data

\phpDocumentor\Reflection\TraitReflector

Response

\phpDocumentor\Descriptor\TraitDescriptor

Extracts the package from the DocBlock.

extractPackageFromDocBlock(\phpDocumentor\Reflection\DocBlock $docBlock) : string|null
inherited

Arguments

$docBlock

\phpDocumentor\Reflection\DocBlock

Response

string|null

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

getBuilder() : null|\phpDocumentor\Descriptor\ProjectDescriptorBuilder
inherited

Registers the Builder with this Assembler.

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

The Builder may be used to recursively assemble Descriptors using the \ProjectDescriptorBuilder::buildDescriptor() method.

Arguments

Properties

builder

builder : \phpDocumentor\Descriptor\ProjectDescriptorBuilder|null
inherited