DescriptionAssemblerReducer
extends AssemblerAbstract
in package
implements
AssemblerReducer
FinalYes
Base class for all assemblers.
Table of Contents
Interfaces
- AssemblerReducer
- A step in creating descriptors from reflection elements
Properties
- $builder : ProjectDescriptorBuilder|null
Methods
- create() : ElementInterface|TagDescriptor|null
- Creates a Descriptor from the provided data.
- getBuilder() : ProjectDescriptorBuilder|null
- Returns the builder for this Assembler or null if none is set.
- setBuilder() : void
- Registers the Builder with this Assembler.
- createTags() : array<int, TagDescriptor|null>
Properties
$builder
protected
ProjectDescriptorBuilder|null
$builder
Methods
create()
Creates a Descriptor from the provided data.
public
create(object $data[, Descriptor|null $descriptor = null ]) : ElementInterface|TagDescriptor|null
Parameters
- $data : object
- $descriptor : Descriptor|null = null
Return values
ElementInterface|TagDescriptor|nullgetBuilder()
Returns the builder for this Assembler or null if none is set.
public
getBuilder() : ProjectDescriptorBuilder|null
Return values
ProjectDescriptorBuilder|nullsetBuilder()
Registers the Builder with this Assembler.
public
setBuilder(ProjectDescriptorBuilder $builder) : void
The Builder may be used to recursively assemble Descriptors using the method.
Parameters
- $builder : ProjectDescriptorBuilder
createTags()
private
createTags(array<string|int, Tag> $tags) : array<int, TagDescriptor|null>
Parameters
- $tags : array<string|int, Tag>