DeprecatedAssembler
extends BaseTagAssembler
in package
Constructs a new descriptor from the Reflector for an `{@}deprecated` tag.
This object will read the reflected information for the @deprecated
tag and create a DeprecatedDescriptor
object that can be used in the rest of the application and templates.
Tags
Table of Contents
- $builder : ProjectDescriptorBuilder|null
- $reducers : array<string|int, AssemblerReducer>
- __construct() : mixed
- buildDescriptor() : DeprecatedDescriptor
- Creates a new Descriptor from the given Reflector.
- create() : TDescriptor|null
- 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.
- pretifyValue() : string|null
Properties
$builder
protected
ProjectDescriptorBuilder|null
$builder
$reducers
private
array<string|int, AssemblerReducer>
$reducers
Methods
__construct()
public
__construct(AssemblerReducer ...$reducers) : mixed
Parameters
- $reducers : AssemblerReducer
Return values
mixed —buildDescriptor()
Creates a new Descriptor from the given Reflector.
public
buildDescriptor(object $data) : DeprecatedDescriptor
Parameters
- $data : object
Return values
DeprecatedDescriptor —create()
public
create(TInput $data) : TDescriptor|null
Parameters
- $data : TInput
Return values
TDescriptor|null —deduplicateTypes()
public
static deduplicateTypes(Type|null $type) : Type|null
Parameters
- $type : Type|null
Tags
Return values
Type|null —getBuilder()
Returns the builder for this Assembler or null if none is set.
public
getBuilder() : ProjectDescriptorBuilder|null
Return values
ProjectDescriptorBuilder|null —setBuilder()
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
Return values
void —assembleDocBlock()
Assemble DocBlock.
protected
assembleDocBlock(DocBlock|null $docBlock, DescriptorAbstract $target) : void
Parameters
- $docBlock : DocBlock|null
- $target : DescriptorAbstract
Return values
void —extractPackageFromDocBlock()
Extracts the package from the DocBlock.
protected
extractPackageFromDocBlock(DocBlock|null $docBlock) : string|null
Parameters
- $docBlock : DocBlock|null
Return values
string|null —pretifyValue()
protected
pretifyValue(string|null $value) : string|null
Parameters
- $value : string|null