package Default
inherited_from \Zend\Code\Generator\AbstractGenerator

 Methods

__construct()

__construct(\Zend\Code\Generator\ClassGenerator $classGenerator) 
inherited_from \Zend\Code\Generator\AbstractGenerator::__construct()

Parameters

$classGenerator

__construct()

__construct(array $options = array()
Inherited

Parameters

$options

array

addTrait()

addTrait($trait) 
inherit Zend\Code\Generator\TraitUsageInterface

Parameters

$trait

addTraitAlias()

addTraitAlias($method, $alias, $visibility = null
inherit Zend\Code\Generator\TraitUsageInterface

Parameters

$method

$alias

$visibility

addTraitOverride()

addTraitOverride($method, $traitsToReplace) 
inherit Zend\Code\Generator\TraitUsageInterface

Parameters

$method

$traitsToReplace

addTraits()

addTraits(array $traits) 
inherit Zend\Code\Generator\TraitUsageInterface

Parameters

$traits

addUse()

addUse($use, $useAlias = null
inherit Zend\Code\Generator\TraitUsageInterface

Parameters

$use

$useAlias

generate()

generate() 
inherit Zend\Code\Generator\GeneratorInterface

getIndentation()

getIndentation() : string
Inherited

Returns

string

getSourceContent()

getSourceContent() : string
Inherited

Returns

string

getTraitAliases()

getTraitAliases() 
inherit Zend\Code\Generator\TraitUsageInterface

getTraitOverrides()

getTraitOverrides() 
inherit Zend\Code\Generator\TraitUsageInterface

getTraits()

getTraits() 
inherit Zend\Code\Generator\TraitUsageInterface

getUses()

getUses() 
inherit Zend\Code\Generator\TraitUsageInterface

hasTrait()

hasTrait($traitName) 
inherit Zend\Code\Generator\TraitUsageInterface

Parameters

$traitName

isSourceDirty()

isSourceDirty() : boolean
Inherited

Returns

boolean

removeTrait()

removeTrait($traitName) 
inherit Zend\Code\Generator\TraitUsageInterface

Parameters

$traitName

removeTraitOverride()

removeTraitOverride($method, $overridesToRemove = null
inherit Zend\Code\Generator\TraitUsageInterface

Parameters

$method

$overridesToRemove

setIndentation()

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

Parameters

$indentation

string

Returns

\Zend\Code\Generator\AbstractGenerator

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

 

$classGenerator

$classGenerator : \Zend\Code\Generator\ClassGenerator

Default

 

4 spaces by default

$indentation : integer | string

Default

' '
 

$isSourceDirty

$isSourceDirty : boolean

Default

true
 

$sourceContent

$sourceContent : string

Default

null
 

Array of trait aliases

$traitAliases : array

Default

array()
 

Array of trait overrides

$traitOverrides : array

Default

array()
 

Array of trait names

$traits : array

Default

array()
 

Array of string names

$uses : array

Default

array()

 Constants

 

Line feed to use in place of EOL

LINE_FEED = "\n"