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

package Default
inherited_from \Zend\Code\Generic\Prototype\PrototypeClassFactory

 Methods

__construct()

__construct(array<mixed,\Zend\Code\Generic\Prototype\PrototypeInterface> $prototypes = array(), \Zend\Code\Generic\Prototype\PrototypeGenericInterface $genericPrototype = null
Inherited

Parameters

$prototypes

array<mixed,\Zend\Code\Generic\Prototype\PrototypeInterface>

$genericPrototype

\Zend\Code\Generic\Prototype\PrototypeGenericInterface

addPrototype()

addPrototype(\Zend\Code\Generic\Prototype\PrototypeInterface $prototype) 
Inherited

Parameters

$prototype

\Zend\Code\Generic\Prototype\PrototypeInterface

Exceptions

\Zend\Code\Reflection\Exception\InvalidArgumentException

createTagFromReflection()

createTagFromReflection(\Zend\Code\Reflection\DocBlock\Tag\TagInterface $reflectionTag) : \Zend\Code\Generator\DocBlock\Tag\TagInterface

Parameters

$reflectionTag

\Zend\Code\Reflection\DocBlock\Tag\TagInterface

Returns

\Zend\Code\Generator\DocBlock\Tag\TagInterface

getClonedPrototype()

getClonedPrototype(string $prototypeName) : \Zend\Code\Generic\Prototype\PrototypeInterface
Inherited

Parameters

$prototypeName

string

Exceptions

\Zend\Code\Reflection\Exception\RuntimeException

Returns

\Zend\Code\Generic\Prototype\PrototypeInterface

hasPrototype()

hasPrototype(string $name) : boolean
Inherited

Parameters

$name

string

Returns

boolean

initializeDefaultTags()

initializeDefaultTags() : void

setGenericPrototype()

setGenericPrototype(\Zend\Code\Generic\Prototype\PrototypeGenericInterface $prototype) 
Inherited

Parameters

$prototype

\Zend\Code\Generic\Prototype\PrototypeGenericInterface

Exceptions

\Zend\Code\Reflection\Exception\InvalidArgumentException

normalizeName()

normalizeName(string $name) : string
Inherited

Parameters

$name

string

Returns

string

 Properties

 

$genericPrototype

$genericPrototype : \Zend\Code\Generic\Prototype\PrototypeGenericInterface

Default

null
 

$prototypes

$prototypes : array

Default

array()