category |
Zend |
package |
Zend_CodeGenerator |
copyright |
Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) |
license |
New BSD License |
inherited_from |
\Zend_CodeGenerator_Php_Member_Abstract |
Methods
__construct()
__construct(array $options = array()
)
Inherited
Parameters
$options
array
__toString() - casting to a string will in turn call generate()
__toString() : string
Inherited
fromReflection()
fromReflection(\Zend_Reflection_Property $reflectionProperty) : \Zend_CodeGenerator_Php_Property
Static
Parameters
$reflectionProperty
\Zend_Reflection_Property
Returns
\Zend_CodeGenerator_Php_Property
generate()
generate() : string
generate() - must be implemented by the child
generate()
Inherited
getDefaultValue()
getDefaultValue() : \Zend_CodeGenerator_Php_Property_DefaultValue
Returns
\Zend_CodeGenerator_Php_Property_DefaultValue
getDocblock()
getDocblock() : \Zend_CodeGenerator_Php_Docblock
Inherited
Returns
\Zend_CodeGenerator_Php_Docblock
getIndentation()
getIndentation() : string | integer
Inherited
getName()
getName() : string
Inherited
getSourceContent()
getSourceContent() : string
Inherited
getVisibility()
getVisibility() : \const
Inherited
isAbstract()
isAbstract() : boolean
Inherited
isConst()
isConst() : boolean
isFinal()
isFinal() : boolean
Inherited
isSourceDirty()
isSourceDirty() : boolean
Inherited
isStatic()
isStatic() : boolean
Inherited
setAbstract()
setAbstract(boolean $isAbstract) : \Zend_CodeGenerator_Php_Member_Abstract
Inherited
Parameters
$isAbstract
boolean
Returns
\Zend_CodeGenerator_Php_Member_Abstract
setConfig()
setConfig(\Zend_Config $config) : \Zend_CodeGenerator_Abstract
Inherited
Parameters
$config
\Zend_Config
Returns
\Zend_CodeGenerator_Abstract
setConst()
setConst(boolean $const) : \Zend_CodeGenerator_Php_Property
Parameters
$const
boolean
Returns
\Zend_CodeGenerator_Php_Property
setDefaultValue()
setDefaultValue(\Zend_CodeGenerator_Php_Property_DefaultValue|string|array $defaultValue) : \Zend_CodeGenerator_Php_Property
Parameters
$defaultValue
\Zend_CodeGenerator_Php_Property_DefaultValue
string
array
Returns
\Zend_CodeGenerator_Php_Property
setDocblock() Set the docblock
setDocblock(\Zend_CodeGenerator_Php_Docblock|array|string $docblock) : \Zend_CodeGenerator_Php_File
Inherited
Parameters
$docblock
\Zend_CodeGenerator_Php_Docblock
array
string
Returns
\Zend_CodeGenerator_Php_File
setFinal()
setFinal(boolean $isFinal) : \Zend_CodeGenerator_Php_Member_Abstract
Inherited
Parameters
$isFinal
boolean
Returns
\Zend_CodeGenerator_Php_Member_Abstract
setIndentation()
setIndentation(string|integer $indentation) : \Zend_CodeGenerator_Php_Abstract
Inherited
Parameters
$indentation
string
integer
Returns
\Zend_CodeGenerator_Php_Abstract
setName()
setName(string $name) : \Zend_CodeGenerator_Php_Member_Abstract
Inherited
Parameters
$name
string
Returns
\Zend_CodeGenerator_Php_Member_Abstract
setOptions()
setOptions(array $options) : \Zend_CodeGenerator_Abstract
Inherited
Parameters
$options
array
Returns
\Zend_CodeGenerator_Abstract
setSourceContent()
setSourceContent(string $sourceContent)
Inherited
Parameters
$sourceContent
string
setSourceDirty()
setSourceDirty(boolean $isSourceDirty = true
) : \Zend_CodeGenerator_Php_Abstract
Inherited
Parameters
$isSourceDirty
boolean
Returns
\Zend_CodeGenerator_Php_Abstract
setStatic()
setStatic(boolean $isStatic) : \Zend_CodeGenerator_Php_Member_Abstract
Inherited
Parameters
$isStatic
boolean
Returns
\Zend_CodeGenerator_Php_Member_Abstract
setVisitibility()
setVisibility(\const $visibility) : \Zend_CodeGenerator_Php_Member_Abstract
Inherited
Parameters
$visibility
\const
Returns
\Zend_CodeGenerator_Php_Member_Abstract
_init() - this is called before the constuctor
_init()
Inherited
_prepare() - this is called at construction completion
_prepare()
Inherited
Properties
$_defaultValue
$_defaultValue : string
$_docblock
$_docblock : \Zend_CodeGenerator_Php_Docblock
$_indentation
$_indentation : integer | string
$_isAbstract
$_isAbstract : boolean
$_isConst
$_isConst : boolean
$_isFinal
$_isFinal : boolean
$_isSourceDirty
$_isSourceDirty : boolean
$_isStatic
$_isStatic : boolean
$_sourceContent
$_sourceContent : string
$_visibility
$_visibility : \const
Default
self::VISIBILITY_PUBLIC
Constants
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'