PHP Trait gossi\codegen\model\parts\TypeDocblockGeneratorPart

For all models that have a type and need docblock tag generated from it
Author: Thomas Gossmann
Datei anzeigen Open project: gossi/php-code-generator

Public Methods

Method Description
getType ( ) : string Returns the type
getTypeDescription ( ) : string Returns the type description

Protected Methods

Method Description
generateTypeTag ( gossi\docblock\tags\AbstractTag $tag ) Generates a type tag (return or var) but checks if one exists and updates this one
getDocblock ( ) : Docblock Returns the docblock

Method Details

generateTypeTag() protected method

Generates a type tag (return or var) but checks if one exists and updates this one
protected generateTypeTag ( gossi\docblock\tags\AbstractTag $tag )
$tag gossi\docblock\tags\AbstractTag

getDocblock() abstract protected method

Returns the docblock
abstract protected getDocblock ( ) : Docblock
return Docblock

getType() abstract public method

Returns the type
abstract public getType ( ) : string
return string

getTypeDescription() abstract public method

Returns the type description
abstract public getTypeDescription ( ) : string
return string