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

 Methods

__construct()

__construct(string $propertyName, array $types, string $description) 

Parameters

$propertyName

string

$types

array

$description

string

generate()

generate() : string

Returns

string

getDescription()

getDescription() : string
Inherited

inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::getDescription()

Returns

string

getIndentation()

getIndentation() : string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::getIndentation()
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::getIndentation()

Returns

string

getName()

getName() : string

Returns

string

getPropertyName()

getPropertyName() : string

Returns

string

getSourceContent()

getSourceContent() : string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::getSourceContent()
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::getSourceContent()

Returns

string

getTypes()

getTypes() : array
Inherited

inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::getTypes()

Returns

array

getTypesAsString()

getTypesAsString(string $delimiter) : string
Inherited

inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::getTypesAsString()

Parameters

$delimiter

string

Returns

string

isSourceDirty()

isSourceDirty() : bool
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::isSourceDirty()
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::isSourceDirty()

Returns

bool

setDescription()

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

inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::setDescription()

Parameters

$description

string

Returns

setIndentation()

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

inherited_from \Zend\Code\Generator\AbstractGenerator::setIndentation()
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::setIndentation()

Parameters

$indentation

string

Returns

setOptions()

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

inherited_from \Zend\Code\Generator\AbstractGenerator::setOptions()
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::setOptions()

Parameters

$options

array\Traversable

Exceptions

\Zend\Code\Generator\Exception\InvalidArgumentException

Returns

setPropertyName()

setPropertyName(string $propertyName) : \Zend\Code\Generator\DocBlock\Tag\self

Parameters

$propertyName

string

Returns

\Zend\Code\Generator\DocBlock\Tag\self

setSourceContent()

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

inherited_from \Zend\Code\Generator\AbstractGenerator::setSourceContent()
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::setSourceContent()

Parameters

$sourceContent

string

Returns

setSourceDirty()

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

inherited_from \Zend\Code\Generator\AbstractGenerator::setSourceDirty()
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::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
Inherited

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

inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::setTypes()

Parameters

$types

arraystring

Returns

 Properties

 

$description

$description : string
Inherited

inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::$$description
 

<p>4 spaces by default</p>

$indentation : int | string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::$$indentation
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::$$indentation
 

$isSourceDirty

$isSourceDirty : bool
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::$$isSourceDirty
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::$$isSourceDirty
 

$propertyName

$propertyName : string

 

$sourceContent

$sourceContent : string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::$$sourceContent
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::$$sourceContent
 

$types

$types : array
Inherited

inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::$$types

 Constants

 

Line feed to use in place of EOL

LINE_FEED 
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::LINE_FEED
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::LINE_FEED