package Default
inherited_from \Zend\Code\Generator\AbstractMemberGenerator

 Methods

__construct()

__construct(string $name = null, \Zend\Code\Generator\PropertyValueGenerator|string|array $defaultValue = null, integer $flags = self::FLAG_PUBLIC

Parameters

$name

string

$defaultValue

\Zend\Code\Generator\PropertyValueGeneratorstringarray

$flags

integer

__construct()

__construct(array $options = array()
Inherited

Parameters

$options

array

addFlag()

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

Parameters

$flag

integer

Returns

\Zend\Code\Generator\AbstractMemberGenerator

Generate from array

fromArray(array $array) : \Zend\Code\Generator\PropertyGenerator
Static
configkey name string [required] Class Name
configkey const bool
configkey defaultvalue null|bool|string|int|float|array|ValueGenerator
configkey flags int
configkey abstract bool
configkey final bool
configkey static bool
configkey visibility string

Parameters

$array

array

Exceptions

\Zend\Code\Generator\Exception\InvalidArgumentException

Returns

\Zend\Code\Generator\PropertyGenerator

fromReflection()

fromReflection(\Zend\Code\Reflection\PropertyReflection $reflectionProperty) : \Zend\Code\Generator\PropertyGenerator
Static

Parameters

$reflectionProperty

\Zend\Code\Reflection\PropertyReflection

Returns

\Zend\Code\Generator\PropertyGenerator

generate()

generate() : string

Exceptions

\Zend\Code\Generator\Exception\RuntimeException

Returns

string

getDefaultValue()

getDefaultValue() : \Zend\Code\Generator\PropertyValueGenerator

Returns

\Zend\Code\Generator\PropertyValueGenerator

getDocBlock()

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

Returns

\Zend\Code\Generator\DocBlockGenerator

getIndentation()

getIndentation() : string
Inherited

Returns

string

getName()

getName() : string
Inherited

Returns

string

getSourceContent()

getSourceContent() : string
Inherited

Returns

string

getVisibility()

getVisibility() : string
Inherited

Returns

string

isAbstract()

isAbstract() : boolean
Inherited

Returns

boolean

isConst()

isConst() : boolean

Returns

boolean

isFinal()

isFinal() : boolean
Inherited

Returns

boolean

isSourceDirty()

isSourceDirty() : boolean
Inherited

Returns

boolean

isStatic()

isStatic() : boolean
Inherited

Returns

boolean

removeFlag()

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

Parameters

$flag

integer

Returns

\Zend\Code\Generator\AbstractMemberGenerator

setAbstract()

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

Parameters

$isAbstract

boolean

Returns

\Zend\Code\Generator\AbstractMemberGenerator

setConst()

setConst(boolean $const) : \Zend\Code\Generator\PropertyGenerator

Parameters

$const

boolean

Returns

\Zend\Code\Generator\PropertyGenerator

setDefaultValue()

setDefaultValue(\Zend\Code\Generator\PropertyValueGenerator|mixed $defaultValue, string $defaultValueType = \Zend\Code\Generator\PropertyValueGenerator::TYPE_AUTO, string $defaultValueOutputMode = \Zend\Code\Generator\PropertyValueGenerator::OUTPUT_MULTIPLE_LINE) : \Zend\Code\Generator\PropertyGenerator

Parameters

$defaultValue

\Zend\Code\Generator\PropertyValueGeneratormixed

$defaultValueType

string

$defaultValueOutputMode

string

Returns

\Zend\Code\Generator\PropertyGenerator

setDocBlock()

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

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
Inherited

Parameters

$isFinal

boolean

Returns

\Zend\Code\Generator\AbstractMemberGenerator

setFlags()

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

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
Inherited

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
Inherited

Parameters

$isStatic

boolean

Returns

\Zend\Code\Generator\AbstractMemberGenerator

setVisibility()

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

Parameters

$visibility

string

Returns

\Zend\Code\Generator\AbstractMemberGenerator

 Properties

 

$defaultValue

$defaultValue : \Zend\Code\Generator\PropertyValueGenerator

Default

null
 

$docBlock

$docBlock : \Zend\Code\Generator\DocBlockGenerator

Default

null
 

$flags

$flags : integer

Default

self::FLAG_PUBLIC
 

4 spaces by default

$indentation : integer | string

Default

' '
 

$isConst

$isConst : boolean

Default

null
 

$isSourceDirty

$isSourceDirty : boolean

Default

true
 

$name

$name : string

Default

null
 

$sourceContent

$sourceContent : string

Default

null

 Constants

 

FLAG_ABSTRACT

FLAG_ABSTRACT = 1 
 

FLAG_CONSTANT

FLAG_CONSTANT = 8 
 

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'