ArgumentAssembler
extends AssemblerAbstract
in package
Assembles an ArgumentDescriptor using an ArgumentReflector and ParamDescriptors.
Table of Contents
Properties
- $builder : ProjectDescriptorBuilder|null
Methods
- create() : TDescriptor|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.
- overwriteTypeAndDescriptionFromParamTag() : void
- Overwrites the type and description in the Argument Descriptor with that from the tag if the names match.
- prettifyValue() : string|null
Properties
$builder
protected
ProjectDescriptorBuilder|null
$builder
Methods
create()
Creates a Descriptor from the provided data.
public
create(Argument $data[, iterable<string|int, ParamDescriptor> $params = [] ]) : TDescriptor|null
Parameters
- $data : Argument
- $params : iterable<string|int, ParamDescriptor> = []
Return values
TDescriptor|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
overwriteTypeAndDescriptionFromParamTag()
Overwrites the type and description in the Argument Descriptor with that from the tag if the names match.
protected
overwriteTypeAndDescriptionFromParamTag(Argument $argument, ParamDescriptor $paramDescriptor, ArgumentInterface $argumentDescriptor) : void
Parameters
- $argument : Argument
- $paramDescriptor : ParamDescriptor
- $argumentDescriptor : ArgumentInterface
prettifyValue()
protected
prettifyValue(string|null $value) : string|null
Parameters
- $value : string|null