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

package Default
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag

 Methods

__construct()

__construct(string $methodName = null, array $types = array(), string $description = null, boolean $isStatic = false
inherited_from \Zend\Code\Generator\DocBlock\Tag\AbstractTypeableTag::__construct()

Parameters

$methodName

string

$types

array

$description

string

$isStatic

boolean

__construct()

__construct(array $options = array()
Inherited

Parameters

$options

array

generate()

generate() : string

Returns

string

getDescription()

getDescription() : string
Inherited

Returns

string

getIndentation()

getIndentation() : string
Inherited

Returns

string

getMethodName()

getMethodName() : string

Returns

string

getName()

getName() : string

Returns

string

getSourceContent()

getSourceContent() : string
Inherited

Returns

string

getTypes()

getTypes() : array
Inherited

Returns

array

getTypesAsString()

getTypesAsString(string $delimiter = '|') : string
Inherited

Parameters

$delimiter

string

Returns

string

isSourceDirty()

isSourceDirty() : boolean
Inherited

Returns

boolean

isStatic()

isStatic() : boolean

Returns

boolean

setDescription()

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

Parameters

$description

string

Returns

\Zend\Code\Generator\DocBlock\Tag\ReturnTag

setIndentation()

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

Parameters

$indentation

string

Returns

\Zend\Code\Generator\AbstractGenerator

setIsStatic()

setIsStatic(boolean $isStatic) : \Zend\Code\Generator\DocBlock\Tag\MethodTag

Parameters

$isStatic

boolean

Returns

\Zend\Code\Generator\DocBlock\Tag\MethodTag

setMethodName()

setMethodName(string $methodName) : \Zend\Code\Generator\DocBlock\Tag\MethodTag

Parameters

$methodName

string

Returns

\Zend\Code\Generator\DocBlock\Tag\MethodTag

setOptions()

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

Parameters

$options

array\Traversable

Exceptions

\Zend\Code\Generator\Exception\InvalidArgumentException

Returns

\Zend\Code\Generator\AbstractGenerator

setSourceContent()

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

Parameters

$sourceContent

string

Returns

\Zend\Code\Generator\AbstractGenerator

setSourceDirty()

setSourceDirty(boolean $isSourceDirty = true) : \Zend\Code\Generator\AbstractGenerator
Inherited

Parameters

$isSourceDirty

boolean

Returns

\Zend\Code\Generator\AbstractGenerator

Array of types or string with types delimited by pipe (|) e.g. array('int', 'null') or "int|null"

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

Parameters

$types

arraystring

Returns

\Zend\Code\Generator\DocBlock\Tag\ReturnTag

 Properties

 

$description

$description : string

Default

null
 

4 spaces by default

$indentation : integer | string

Default

' '
 

$isSourceDirty

$isSourceDirty : boolean

Default

true
 

$isStatic

$isStatic : boolean

Default

false
 

$methodName

$methodName : string

Default

null
 

$sourceContent

$sourceContent : string

Default

null
 

$types

$types : array

Default

array()

 Constants

 

Line feed to use in place of EOL

LINE_FEED = "\n"