MethodAssembler extends BaseTagAssembler
Constructs a new descriptor from the Reflector for an `@method` tag.
This object will read the reflected information for the @method tag and create a MethodDescriptor object
that can be used in the rest of the application and templates.
Table of Contents
Properties
- $builder : ProjectDescriptorBuilder|null
Methods
- __construct() : mixed
- buildDescriptor() : TDescriptor|null
- Creates a new Descriptor from the given Reflector.
- create() : TDescriptor|null
- Creates a Descriptor from the provided data.
- 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.
- assembleDocBlock() : void
- Assemble DocBlock.
- extractPackageFromDocBlock() : string|null
- Extracts the package from the DocBlock.
Properties
$builder
        protected
            ProjectDescriptorBuilder|null
    $builder
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct(AssemblerReducer ...$reducers) : mixed
    Parameters
- $reducers : AssemblerReducer
buildDescriptor()
Creates a new Descriptor from the given Reflector.
    public
                    buildDescriptor(Method $data) : TDescriptor|null
    Parameters
- $data : Method
Return values
TDescriptor|nullcreate()
Creates a Descriptor from the provided data.
    public
                    create(TInput $data) : TDescriptor|null
    Parameters
- $data : TInput
Return values
TDescriptor|nulldeduplicateTypes()
    public
            static        deduplicateTypes(Type|null $type) : Type|null
    the functionality in this method has been moved to the Compound type in the latest unreleased version of the TypeResolver library
Parameters
- $type : Type|null
Return values
Type|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
assembleDocBlock()
Assemble DocBlock.
    protected
                    assembleDocBlock(DocBlock|null $docBlock, DescriptorAbstract|PropertyHookDescriptor $target) : void
    Parameters
- $docBlock : DocBlock|null
- $target : DescriptorAbstract|PropertyHookDescriptor
extractPackageFromDocBlock()
Extracts the package from the DocBlock.
    protected
                    extractPackageFromDocBlock(DocBlock|null $docBlock) : string|null
    Parameters
- $docBlock : DocBlock|null