package Default
inherited_from \Zend\Code\Generator\AbstractGenerator

 Methods

__construct()

__construct(array $options = array()
Inherited

Parameters

$options

array

addFlag()

addFlag(integer $flag) : \Zend\Code\Generator\AbstractMemberGenerator

Parameters

$flag

integer

Returns

\Zend\Code\Generator\AbstractMemberGenerator

getDocBlock()

getDocBlock() : \Zend\Code\Generator\DocBlockGenerator

Returns

\Zend\Code\Generator\DocBlockGenerator

getIndentation()

getIndentation() : string
Inherited

Returns

string

getName()

getName() : string

Returns

string

getSourceContent()

getSourceContent() : string
Inherited

Returns

string

getVisibility()

getVisibility() : string

Returns

string

isAbstract()

isAbstract() : boolean

Returns

boolean

isFinal()

isFinal() : boolean

Returns

boolean

isSourceDirty()

isSourceDirty() : boolean
Inherited

Returns

boolean

isStatic()

isStatic() : boolean

Returns

boolean

removeFlag()

removeFlag(integer $flag) : \Zend\Code\Generator\AbstractMemberGenerator

Parameters

$flag

integer

Returns

\Zend\Code\Generator\AbstractMemberGenerator

setAbstract()

setAbstract(boolean $isAbstract) : \Zend\Code\Generator\AbstractMemberGenerator

Parameters

$isAbstract

boolean

Returns

\Zend\Code\Generator\AbstractMemberGenerator

setDocBlock()

setDocBlock(\Zend\Code\Generator\DocBlockGenerator|string $docBlock) : \Zend\Code\Generator\AbstractMemberGenerator

Parameters

$docBlock

\Zend\Code\Generator\DocBlockGeneratorstring

Exceptions

\Zend\Code\Generator\Exception\InvalidArgumentException

Returns

\Zend\Code\Generator\AbstractMemberGenerator

setFinal()

setFinal(boolean $isFinal) : \Zend\Code\Generator\AbstractMemberGenerator

Parameters

$isFinal

boolean

Returns

\Zend\Code\Generator\AbstractMemberGenerator

setFlags()

setFlags(integer|array $flags) : \Zend\Code\Generator\AbstractMemberGenerator

Parameters

$flags

integerarray

Returns

\Zend\Code\Generator\AbstractMemberGenerator

setIndentation()

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

Parameters

$indentation

string

Returns

\Zend\Code\Generator\AbstractGenerator

setName()

setName(string $name) : \Zend\Code\Generator\AbstractMemberGenerator

Parameters

$name

string

Returns

\Zend\Code\Generator\AbstractMemberGenerator

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

setStatic()

setStatic(boolean $isStatic) : \Zend\Code\Generator\AbstractMemberGenerator

Parameters

$isStatic

boolean

Returns

\Zend\Code\Generator\AbstractMemberGenerator

setVisibility()

setVisibility(string $visibility) : \Zend\Code\Generator\AbstractMemberGenerator

Parameters

$visibility

string

Returns

\Zend\Code\Generator\AbstractMemberGenerator

 Properties

 

$docBlock

$docBlock : \Zend\Code\Generator\DocBlockGenerator

Default

null
 

$flags

$flags : integer

Default

self::FLAG_PUBLIC
 

4 spaces by default

$indentation : integer | string

Default

' '
 

$isSourceDirty

$isSourceDirty : boolean

Default

true
 

$name

$name : string

Default

null
 

$sourceContent

$sourceContent : string

Default

null

 Constants

 

FLAG_ABSTRACT

FLAG_ABSTRACT = 1 
 

FLAG_FINAL

FLAG_FINAL = 2 
 

FLAG_PRIVATE

FLAG_PRIVATE = 64 
 

FLAG_PROTECTED

FLAG_PROTECTED = 32 
 

FLAG_PUBLIC

FLAG_PUBLIC = 16 
 

FLAG_STATIC

FLAG_STATIC = 4 
 

Line feed to use in place of EOL

LINE_FEED = "\n" 
 

VISIBILITY_PRIVATE

VISIBILITY_PRIVATE = 'private' 
 

VISIBILITY_PROTECTED

VISIBILITY_PROTECTED = 'protected' 
 

VISIBILITY_PUBLIC

VISIBILITY_PUBLIC = 'public'