package Default
inherited_from \Zend\Code\Generator\AbstractGenerator

 Methods

__construct()

__construct(string $url = null, string $licenseName = null
inherited_from \Zend\Code\Generator\AbstractGenerator::__construct()

Parameters

$url

string

$licenseName

string

__construct()

__construct(array $options = array()
Inherited

Parameters

$options

array

fromReflection()

fromReflection(\Zend\Code\Reflection\DocBlock\Tag\TagInterface $reflectionTag) : \Zend\Code\Generator\DocBlock\Tag\ReturnTag
Static
deprecated Deprecated in 2.3. Use TagManager::createTagFromReflection() instead

Parameters

$reflectionTag

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

Returns

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

generate()

generate() : string

Returns

string

getIndentation()

getIndentation() : string
Inherited

Returns

string

getLicenseName()

getLicenseName() : string

Returns

string

getName()

getName() : string

Returns

string

getSourceContent()

getSourceContent() : string
Inherited

Returns

string

getUrl()

getUrl() : string

Returns

string

isSourceDirty()

isSourceDirty() : boolean
Inherited

Returns

boolean

setIndentation()

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

Parameters

$indentation

string

Returns

\Zend\Code\Generator\AbstractGenerator

setLicenseName()

setLicenseName(string $name) : \Zend\Code\Generator\DocBlock\Tag\LicenseTag

Parameters

$name

string

Returns

\Zend\Code\Generator\DocBlock\Tag\LicenseTag

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

setUrl()

setUrl(string $url) : \Zend\Code\Generator\DocBlock\Tag\LicenseTag

Parameters

$url

string

Returns

\Zend\Code\Generator\DocBlock\Tag\LicenseTag

 Properties

 

4 spaces by default

$indentation : integer | string

Default

' '
 

$isSourceDirty

$isSourceDirty : boolean

Default

true
 

$licenseName

$licenseName : string

Default

null
 

$sourceContent

$sourceContent : string

Default

null
 

$url

$url : string

Default

null

 Constants

 

Line feed to use in place of EOL

LINE_FEED = "\n"