\phpDocumentor\Descriptor\Builder\ReflectorTraitAssembler

Assembles an TraitDescriptor using an TraitReflector.

Summary

Methods
Properties
Constants
getBuilder()
setBuilder()
create()
No public properties found
No constants found
assembleDocBlock()
extractPackageFromDocBlock()
addProperties()
addMethods()
$builder
N/A
No private methods found
No private properties found
N/A

Properties

Methods

create()

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

Creates a Descriptor from the provided data.

Parameters

\phpDocumentor\Reflection\TraitReflector $data

Returns

\phpDocumentor\Descriptor\TraitDescriptor

assembleDocBlock()

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

Assemble DocBlock.

Parameters

\phpDocumentor\Reflection\DocBlock|null $docBlock
\phpDocumentor\Descriptor\DescriptorAbstract $target

extractPackageFromDocBlock()

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

Extracts the package from the DocBlock.

Parameters

\phpDocumentor\Reflection\DocBlock $docBlock

Returns

string|null

addProperties()

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

Registers the child properties with the generated Trait Descriptor.

Parameters

array<mixed,\phpDocumentor\Reflection\ClassReflector\PropertyReflector> $properties
\phpDocumentor\Descriptor\TraitDescriptor $traitDescriptor

addMethods()

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

Registers the child methods with the generated Trait Descriptor.

Parameters

array<mixed,\phpDocumentor\Reflection\ClassReflector\MethodReflector> $methods
\phpDocumentor\Descriptor\TraitDescriptor $traitDescriptor