package Default
inherited_from \Zend\Code\Generator\AbstractGenerator

 Methods

__construct()

__construct(string $name = null, string $content = null
inherited_from \Zend\Code\Generator\AbstractGenerator::__construct()

Parameters

$name

string

$content

string

__construct()

__construct(array $options = array()
Inherited

Parameters

$options

array

generate()

generate() : string

Returns

string

getContent()

getContent() : string

Returns

string

getIndentation()

getIndentation() : string
Inherited

Returns

string

getName()

getName() : string

Returns

string

getSourceContent()

getSourceContent() : string
Inherited

Returns

string

isSourceDirty()

isSourceDirty() : boolean
Inherited

Returns

boolean

setContent()

setContent(string $content) : \Zend\Code\Generator\DocBlock\Tag\GenericTag

Parameters

$content

string

Returns

\Zend\Code\Generator\DocBlock\Tag\GenericTag

setIndentation()

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

Parameters

$indentation

string

Returns

\Zend\Code\Generator\AbstractGenerator

setName()

setName(string $name) : \Zend\Code\Generator\DocBlock\Tag\GenericTag
inherited_from \Zend\Code\Generic\Prototype\PrototypeGenericInterface::setName()

Parameters

$name

string

Returns

\Zend\Code\Generator\DocBlock\Tag\GenericTag

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

 Properties

 

$content

$content : string

Default

null
 

4 spaces by default

$indentation : integer | string

Default

' '
 

$isSourceDirty

$isSourceDirty : boolean

Default

true
 

$name

$name : string

Default

null
 

$sourceContent

$sourceContent : string

Default

null

 Constants

 

Line feed to use in place of EOL

LINE_FEED = "\n"