This abstract class can be used as parent for all tags that use a type part in their content.

see \Zend\Code\Generator\DocBlock\Tag\http://www.phpdoc.org/docs/latest/for-users/phpdoc/types.html

 Methods

__construct()

__construct(array $types, string $description) 

Parameters

$types

array

$description

string

generate()

generate() 
Inherited

inherited_from \Zend\Code\Generator\GeneratorInterface::generate()
inherited_from \Zend\Code\Generator\AbstractGenerator::generate()

getDescription()

getDescription() : string

Returns

string

getIndentation()

getIndentation() : string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::getIndentation()

Returns

string

getSourceContent()

getSourceContent() : string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::getSourceContent()

Returns

string

getTypes()

getTypes() : array

Returns

array

getTypesAsString()

getTypesAsString(string $delimiter) : string

Parameters

$delimiter

string

Returns

string

isSourceDirty()

isSourceDirty() : bool
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::isSourceDirty()

Returns

bool

setDescription()

setDescription(string $description) : \Zend\Code\Generator\DocBlock\Tag\ReturnTag

Parameters

$description

string

Returns

setIndentation()

setIndentation(string $indentation) : \Zend\Code\Generator\AbstractGenerator
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::setIndentation()

Parameters

$indentation

string

Returns

setOptions()

setOptions(array | \Traversable $options) : \Zend\Code\Generator\AbstractGenerator
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::setOptions()

Parameters

$options

array\Traversable

Exceptions

\Zend\Code\Generator\Exception\InvalidArgumentException

Returns

setSourceContent()

setSourceContent(string $sourceContent) : \Zend\Code\Generator\AbstractGenerator
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::setSourceContent()

Parameters

$sourceContent

string

Returns

setSourceDirty()

setSourceDirty(bool $isSourceDirty) : \Zend\Code\Generator\AbstractGenerator
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::setSourceDirty()

Parameters

$isSourceDirty

bool

Returns

Array of types or string with types delimited by pipe (|) e.g.

setTypes(array | string $types) : \Zend\Code\Generator\DocBlock\Tag\ReturnTag

array('int', 'null') or "int|null"

Parameters

$types

arraystring

Returns

 Properties

 

$description

$description : string

 

<p>4 spaces by default</p>

$indentation : int | string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::$$indentation
 

$isSourceDirty

$isSourceDirty : bool
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::$$isSourceDirty
 

$sourceContent

$sourceContent : string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::$$sourceContent
 

$types

$types : array

 Constants

 

Line feed to use in place of EOL

LINE_FEED 
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::LINE_FEED