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

Returns

string

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

Returns

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

Returns

array

getDocblock()

getDocblock() : \Zend_CodeGenerator_Php_Docblock

Returns

\Zend_CodeGenerator_Php_Docblock

getExtendedClass()

getExtendedClass() : string

Returns

string

getImplementedInterfaces

getImplementedInterfaces() : array

Returns

array

getIndentation()

getIndentation() : string | integer
Inherited

Returns

stringinteger

getMethod()

getMethod(string $methodName) : \Zend_CodeGenerator_Php_Method

Parameters

$methodName

string

Returns

\Zend_CodeGenerator_Php_Method

getMethods()

getMethods() : array

Returns

array

getName()

getName() : string

Returns

string

getProperties()

getProperties() : array

Returns

array

getProperty()

getProperty(string $propertyName) : \Zend_CodeGenerator_Php_Property

Parameters

$propertyName

string

Returns

\Zend_CodeGenerator_Php_Property

getSourceContent()

getSourceContent() : string
Inherited

Returns

string

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

Returns

boolean

isSourceDirty()

isSourceDirty() : boolean
inherited_from \Zend_CodeGenerator_Php_Abstract::isSourceDirty()

Returns

boolean

isSourceDirty()

isSourceDirty() : boolean
Inherited

Returns

boolean

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_Docblockarraystring

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

stringinteger

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

Default

null
 

$_docblock

$_docblock : \Zend_CodeGenerator_Php_Docblock

Default

null
 

$_extendedClass

$_extendedClass : string

Default

null
 

Array of string names

$_implementedInterfaces : array

Default

array()
 

$_indentation

$_indentation : integer | string

Default

' '
 

$_isAbstract

$_isAbstract : boolean

Default

false
 

$_isSourceDirty

$_isSourceDirty : boolean

Default

true
 

Array of methods

$_methods : array

Default

null
 

$_name

$_name : string

Default

null
 

Array of properties

$_properties : array

Default

null
 

$_sourceContent

$_sourceContent : string

Default

null

 Constants

 

Line feed to use in place of EOL

LINE_FEED = "\n"