category Zend
package Zend_Code_Generator

 Methods

Add flag

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

Parameters

$flag

int

Returns

generate()

generate() 
Inherited

inherited_from \Zend\Code\Generator\GeneratorInterface::generate()
inherited_from \Zend\Code\Generator\AbstractGenerator::generate()

getIndentation()

getIndentation() : string | int
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::getIndentation()

Returns

stringint

getName()

getName() : string

Returns

string

getSourceContent()

getSourceContent() : string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::getSourceContent()

Returns

string

getVisibility()

getVisibility() : string

Returns

string

isAbstract()

isAbstract() : bool

Returns

bool

isFinal()

isFinal() : bool

Returns

bool

isSourceDirty()

isSourceDirty() : bool
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::isSourceDirty()

Returns

bool

isStatic()

isStatic() : bool

Returns

bool

Remove flag

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

Parameters

$flag

int

Returns

setAbstract()

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

Parameters

$isAbstract

bool

Returns

setFinal()

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

Parameters

$isFinal

bool

Returns

Set flags

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

Parameters

$flags

intarray

Returns

setIndentation()

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

inherited_from \Zend\Code\Generator\AbstractGenerator::setIndentation()

Parameters

$indentation

stringint

Returns

setName()

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

Parameters

$name

string

Returns

setOptions()

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

inherited_from \Zend\Code\Generator\AbstractGenerator::setOptions()

Parameters

$options

array\Traversable

Exceptions

\Zend\Code\Generator\Exception\InvalidArgumentException

Returns

\Zend\Code\Generator\self

setSourceContent()

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

inherited_from \Zend\Code\Generator\AbstractGenerator::setSourceContent()

Parameters

$sourceContent

string

Returns

setSourceDirty()

setSourceDirty(bool $isSourceDirty) : \Zend\Code\Generator\AbstractGenerator
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::setSourceDirty()

Parameters

$isSourceDirty

bool

Returns

setStatic()

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

Parameters

$isStatic

bool

Returns

setVisibility()

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

Parameters

$visibility

string

Returns

 Properties

 

$docBlock

$docBlock : \Zend\Code\Generator\DocBlockGenerator

 

$flags

$flags : int

 

<p>4 spaces by default</p>

$indentation : int | string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::$$indentation
 

$isSourceDirty

$isSourceDirty : bool
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::$$isSourceDirty
 

$name

$name : string

 

$sourceContent

$sourceContent : string
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::$$sourceContent

 Constants

 

FLAG_ABSTRACT

FLAG_ABSTRACT 

 

FLAG_FINAL

FLAG_FINAL 

 

FLAG_PRIVATE

FLAG_PRIVATE 

 

FLAG_PROTECTED

FLAG_PROTECTED 

 

FLAG_PUBLIC

FLAG_PUBLIC 

 

FLAG_STATIC

FLAG_STATIC 

 

Line feed to use in place of EOL

LINE_FEED 
Inherited

inherited_from \Zend\Code\Generator\AbstractGenerator::LINE_FEED
 

VISIBILITY_PRIVATE

VISIBILITY_PRIVATE 

 

VISIBILITY_PROTECTED

VISIBILITY_PROTECTED 

 

VISIBILITY_PUBLIC

VISIBILITY_PUBLIC