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_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() - build a Code Generation PHP Object from a Class Reflection
fromReflection(\Zend_Reflection_Class $reflectionClass) : \Zend_CodeGenerator_Php_Class
Static
Parameters
$reflectionClass
\Zend_Reflection_Class
Returns
\Zend_CodeGenerator_Php_Class
generate()
generate() : string
generate() - must be implemented by the child
generate()
Inherited
getConstant()
getConstant(string $constName) : \Zend_CodeGenerator_Php_Property
Parameters
$constName
string
Returns
\Zend_CodeGenerator_Php_Property
getConstants()
getConstants() : array
getDocblock()
getDocblock() : \Zend_CodeGenerator_Php_Docblock
Returns
\Zend_CodeGenerator_Php_Docblock
getExtendedClass()
getExtendedClass() : string
getImplementedInterfaces
getImplementedInterfaces() : array
getIndentation()
getIndentation() : string | integer
Inherited
getMethod()
getMethod(string $methodName) : \Zend_CodeGenerator_Php_Method
Parameters
$methodName
string
Returns
\Zend_CodeGenerator_Php_Method
getMethods()
getMethods() : array
getName()
getName() : string
getProperties()
getProperties() : array
getProperty()
getProperty(string $propertyName) : \Zend_CodeGenerator_Php_Property
Parameters
$propertyName
string
Returns
\Zend_CodeGenerator_Php_Property
getSourceContent()
getSourceContent() : string
Inherited
hasConstant()
hasConstant(string $constName) : boolean
Parameters
$constName
string
Returns
boolean
hasMethod()
hasMethod(string $methodName) : boolean
Parameters
$methodName
string
Returns
boolean
hasProperty()
hasProperty(string $propertyName) : boolean
Parameters
$propertyName
string
Returns
boolean
isAbstract()
isAbstract() : boolean
isSourceDirty()
isSourceDirty() : boolean
inherited_from |
\Zend_CodeGenerator_Php_Abstract::isSourceDirty() |
Returns
boolean
isSourceDirty()
isSourceDirty() : boolean
Inherited
setAbstract()
setAbstract(boolean $isAbstract) : \Zend_CodeGenerator_Php_Class
Parameters
$isAbstract
boolean
Returns
\Zend_CodeGenerator_Php_Class
setConfig()
setConfig(\Zend_Config $config) : \Zend_CodeGenerator_Abstract
Inherited
Parameters
$config
\Zend_Config
Returns
\Zend_CodeGenerator_Abstract
setConstant()
setConstant(array|\Zend_CodeGenerator_Php_Property $const) : \Zend_CodeGenerator_Php_Class
Parameters
$const
array
\Zend_CodeGenerator_Php_Property
Returns
\Zend_CodeGenerator_Php_Class
setConstants()
setConstants(array $constants) : \Zend_CodeGenerator_Php_Class
Parameters
$constants
array
Returns
\Zend_CodeGenerator_Php_Class
setDocblock() Set the docblock
setDocblock(\Zend_CodeGenerator_Php_Docblock|array|string $docblock) : \Zend_CodeGenerator_Php_File
Parameters
$docblock
\Zend_CodeGenerator_Php_Docblock
array
string
Returns
\Zend_CodeGenerator_Php_File
setExtendedClass()
setExtendedClass(string $extendedClass) : \Zend_CodeGenerator_Php_Class
Parameters
$extendedClass
string
Returns
\Zend_CodeGenerator_Php_Class
setImplementedInterfaces()
setImplementedInterfaces(array $implementedInterfaces) : \Zend_CodeGenerator_Php_Class
Parameters
$implementedInterfaces
array
Returns
\Zend_CodeGenerator_Php_Class
setIndentation()
setIndentation(string|integer $indentation) : \Zend_CodeGenerator_Php_Abstract
Inherited
Parameters
$indentation
string
integer
Returns
\Zend_CodeGenerator_Php_Abstract
setMethod()
setMethod(array|\Zend_CodeGenerator_Php_Method $method) : \Zend_CodeGenerator_Php_Class
Parameters
$method
array
\Zend_CodeGenerator_Php_Method
Returns
\Zend_CodeGenerator_Php_Class
setMethods()
setMethods(array $methods) : \Zend_CodeGenerator_Php_Class
Parameters
$methods
array
Returns
\Zend_CodeGenerator_Php_Class
setName()
setName(string $name) : \Zend_CodeGenerator_Php_Class
Parameters
$name
string
Returns
\Zend_CodeGenerator_Php_Class
setOptions()
setOptions(array $options) : \Zend_CodeGenerator_Abstract
Inherited
Parameters
$options
array
Returns
\Zend_CodeGenerator_Abstract
setProperties()
setProperties(array $properties) : \Zend_CodeGenerator_Php_Class
Parameters
$properties
array
Returns
\Zend_CodeGenerator_Php_Class
setProperty()
setProperty(array|\Zend_CodeGenerator_Php_Property $property) : \Zend_CodeGenerator_Php_Class
Parameters
$property
array
\Zend_CodeGenerator_Php_Property
Returns
\Zend_CodeGenerator_Php_Class
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
_init() - is called at construction time
_init()
_init() - this is called before the constuctor
_init()
Inherited
_prepare() - this is called at construction completion
_prepare()
Inherited
Properties
Array of constants
$_constants : array
$_docblock
$_docblock : \Zend_CodeGenerator_Php_Docblock
$_extendedClass
$_extendedClass : string
Array of string names
$_implementedInterfaces : array
$_indentation
$_indentation : integer | string
$_isAbstract
$_isAbstract : boolean
$_isSourceDirty
$_isSourceDirty : boolean
Array of methods
$_methods : array
Array of properties
$_properties : array
$_sourceContent
$_sourceContent : string
Constants
Line feed to use in place of EOL
LINE_FEED = "\n"