category Zend
package Zend_Code_Generator

 Methods

__construct()

__construct($name, array $parameters, $flags, $body, $docBlock) 

Parameters

$name

$parameters

$flags

$body

$docBlock

__toString()

__toString() 

Add flag

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

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::addFlag()

Parameters

$flag

int

Returns

fromReflection()

fromReflection(\Zend\Code\Reflection\MethodReflection $reflectionMethod) : \Zend\Code\Generator\MethodGenerator

generate()

generate() : string

Returns

string

getBody()

getBody() : string

Returns

string

getDocBlock()

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

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::getDocBlock()

Returns

getIndentation()

getIndentation() : string | int
Inherited

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

Returns

stringint

getName()

getName() : string
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::getName()

Returns

string

getSourceContent()

getSourceContent() : string
Inherited

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

Returns

string

getVisibility()

getVisibility() : string
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::getVisibility()

Returns

string

isAbstract()

isAbstract() : bool
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::isAbstract()

Returns

bool

isFinal()

isFinal() : bool
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::isFinal()

Returns

bool

isSourceDirty()

isSourceDirty() : bool
Inherited

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

Returns

bool

isStatic()

isStatic() : bool
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::isStatic()

Returns

bool

Remove flag

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

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::removeFlag()

Parameters

$flag

int

Returns

setAbstract()

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

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::setAbstract()

Parameters

$isAbstract

bool

Returns

setBody()

setBody(string $body) : \Zend\Code\Generator\MethodGenerator

Parameters

$body

string

Returns

Set the DocBlock

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

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::setDocBlock()

Parameters

Exceptions

\Zend\Code\Generator\Exception\InvalidArgumentException

Returns

setFinal()

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

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::setFinal()

Parameters

$isFinal

bool

Returns

Set flags

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

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::setFlags()

Parameters

$flags

intarray

Returns

setIndentation()

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

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

Parameters

$indentation

stringint

Returns

setName()

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

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::setName()

Parameters

$name

string

Returns

setOptions()

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

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

Parameters

$options

array\Traversable

Exceptions

\Zend\Code\Generator\Exception\InvalidArgumentException

Returns

\Zend\Code\Generator\self

setParameters()

setParameters(array $parameters) : \Zend\Code\Generator\MethodGenerator

Parameters

$parameters

array

Returns

setSourceContent()

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

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

Parameters

$sourceContent

string

Returns

setSourceDirty()

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

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

Parameters

$isSourceDirty

bool

Returns

setStatic()

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

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::setStatic()

Parameters

$isStatic

bool

Returns

setVisibility()

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

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::setVisibility()

Parameters

$visibility

string

Returns

 Properties

 

$body

$body : string

 

$docBlock

$docBlock : \Zend\Code\Generator\DocBlockGenerator

 

$flags

$flags : int
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::$$flags
 

<p>4 spaces by default</p>

$indentation : int | string
Inherited

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

$isFinal

$isFinal : bool

 

$isSourceDirty

$isSourceDirty : bool
Inherited

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

$name

$name : string
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::$$name
 

$parameters

$parameters : \Zend\Code\Generator\ParameterGenerator[]

 

$sourceContent

$sourceContent : string
Inherited

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

 Constants

 

FLAG_ABSTRACT

FLAG_ABSTRACT 
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::FLAG_ABSTRACT
 

FLAG_FINAL

FLAG_FINAL 
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::FLAG_FINAL
 

FLAG_PRIVATE

FLAG_PRIVATE 
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::FLAG_PRIVATE
 

FLAG_PROTECTED

FLAG_PROTECTED 
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::FLAG_PROTECTED
 

FLAG_PUBLIC

FLAG_PUBLIC 
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::FLAG_PUBLIC
 

FLAG_STATIC

FLAG_STATIC 
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::FLAG_STATIC
 

Line feed to use in place of EOL

LINE_FEED 
Inherited

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

VISIBILITY_PRIVATE

VISIBILITY_PRIVATE 
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::VISIBILITY_PRIVATE
 

VISIBILITY_PROTECTED

VISIBILITY_PROTECTED 
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::VISIBILITY_PROTECTED
 

VISIBILITY_PUBLIC

VISIBILITY_PUBLIC 
Inherited

inherited_from \Zend\Code\Generator\AbstractMemberGenerator::VISIBILITY_PUBLIC