Class TagManager

Summary

Fully Qualified Name: Zend\Code\Generator\DocBlock\TagManager
Extends: PrototypeClassFactory

Description

This class is used in DocBlockGenerator and creates the needed Tag classes depending on the tag. So for example an @author tag will trigger the creation of an AuthorTag class.

If none of the classes is applicable, the GenericTag class will be created

Methods

Name Description Defined By
__construct() PrototypeClassFactory
addPrototype() PrototypeClassFactory
createTagFromReflection() TagManager
getClonedPrototype() PrototypeClassFactory
hasPrototype() PrototypeClassFactory
initializeDefaultTags() TagManager
setGenericPrototype() PrototypeClassFactory

Method Details

__construct()

Parameter Name Type Description
$prototypes \PrototypeInterface[]
$genericPrototype \PrototypeGenericInterface

Returns:

addPrototype()

Parameter Name Type Description
$prototype \PrototypeInterface

Returns:

createTagFromReflection()

Parameter Name Type Description
$reflectionTag \ReflectionTagInterface

Returns: \TagInterface

getClonedPrototype()

Parameter Name Type Description
$prototypeName string

Returns: \PrototypeInterface

hasPrototype()

Parameter Name Type Description
$name string

Returns: bool

initializeDefaultTags()

Returns: void

setGenericPrototype()

Parameter Name Type Description
$prototype \PrototypeGenericInterface

Returns:

Top