CodeGenerator/Php/Class.php
LICENSE
This source file is subject to the new BSD license that is bundled with this package in the file LICENSE.txt. It is also available through the world-wide-web at this URL: http://framework.zend.com/license/new-bsd If you did not receive a copy of the license and are unable to obtain it through the world-wide-web, please send an email to license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_CodeGenerator
- Subpackage
- PHP
- Version
- $Id: Class.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_CodeGenerator_Php_Class
- Parent(s)
- \Zend_CodeGenerator_Php_Abstract < \Zend_CodeGenerator_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Constants
LINE_FEED
= "\n"- Inherited_from
- \Zend_CodeGenerator_Php_Abstract::LINE_FEED
Properties

int|string $_indentation = ' '' 'Details- Type
- int | string
- Inherited_from
- \Zend_CodeGenerator_Php_Abstract::$$_indentation

bool $_isSourceDirty = truetrueDetails- Type
- bool
- Inherited_from
- \Zend_CodeGenerator_Php_Abstract::$$_isSourceDirty

string $_sourceContent = nullnullDetails- Type
- string
- Inherited_from
- \Zend_CodeGenerator_Abstract::$$_sourceContent
- Inherited_from
- \Zend_CodeGenerator_Php_Abstract::$$_sourceContent
Methods

__construct(array $options = array()) : void__construct()
Inherited from: \Zend_CodeGenerator_Abstract::__construct()\Zend_CodeGenerator_Php_Abstract::__construct()| Name | Type | Description |
|---|---|---|
| $options | array |

__toString() : string__toString() - casting to a string will in turn call generate()
Inherited from: \Zend_CodeGenerator_Abstract::__toString()\Zend_CodeGenerator_Php_Abstract::__toString()| Type | Description |
|---|---|
| string |

_prepare() : void_prepare() - this is called at construction completion
Inherited from: \Zend_CodeGenerator_Abstract::_prepare()\Zend_CodeGenerator_Php_Abstract::_prepare()
fromReflection(\Zend_Reflection_Class $reflectionClass) : \Zend_CodeGenerator_Php_ClassfromReflection() - build a Code Generation PHP Object from a Class Reflection
| Name | Type | Description |
|---|---|---|
| $reflectionClass | \Zend_Reflection_Class |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Class |

getConstant(string $constName) : \Zend_CodeGenerator_Php_PropertygetConstant()
| Name | Type | Description |
|---|---|---|
| $constName | string |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Property |

getDocblock() : \Zend_CodeGenerator_Php_DocblockgetDocblock()
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Docblock |

getMethod(string $methodName) : \Zend_CodeGenerator_Php_MethodgetMethod()
| Name | Type | Description |
|---|---|---|
| $methodName | string |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Method |

getProperty(string $propertyName) : \Zend_CodeGenerator_Php_PropertygetProperty()
| Name | Type | Description |
|---|---|---|
| $propertyName | string |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Property |

getSourceContent() : stringgetSourceContent()
Inherited from: \Zend_CodeGenerator_Abstract::getSourceContent()\Zend_CodeGenerator_Php_Abstract::getSourceContent()| Type | Description |
|---|---|
| string |

hasConstant(string $constName) : boolhasConstant()
| Name | Type | Description |
|---|---|---|
| $constName | string |
| Type | Description |
|---|---|
| bool |

hasMethod(string $methodName) : boolhasMethod()
| Name | Type | Description |
|---|---|---|
| $methodName | string |
| Type | Description |
|---|---|
| bool |

hasProperty(string $propertyName) : boolhasProperty()
| Name | Type | Description |
|---|---|---|
| $propertyName | string |
| Type | Description |
|---|---|
| bool |

setAbstract(bool $isAbstract) : \Zend_CodeGenerator_Php_ClasssetAbstract()
| Name | Type | Description |
|---|---|---|
| $isAbstract | bool |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Class |

setConfig(\Zend_Config $config) : \Zend_CodeGenerator_AbstractsetConfig()
Inherited from: \Zend_CodeGenerator_Abstract::setConfig()\Zend_CodeGenerator_Php_Abstract::setConfig()| Name | Type | Description |
|---|---|---|
| $config | \Zend_Config |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Abstract |

setConstant(array | \Zend_CodeGenerator_Php_Property $const) : \Zend_CodeGenerator_Php_ClasssetConstant()
| Name | Type | Description |
|---|---|---|
| $const | array | \Zend_CodeGenerator_Php_Property |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Class |

setConstants(array $constants) : \Zend_CodeGenerator_Php_ClasssetConstants()
| Name | Type | Description |
|---|---|---|
| $constants | array |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Class |

setDocblock(\Zend_CodeGenerator_Php_Docblock | array | string $docblock) : \Zend_CodeGenerator_Php_FilesetDocblock() Set the docblock
| Name | Type | Description |
|---|---|---|
| $docblock | \Zend_CodeGenerator_Php_Docblock | array | string |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_File |

setExtendedClass(string $extendedClass) : \Zend_CodeGenerator_Php_ClasssetExtendedClass()
| Name | Type | Description |
|---|---|---|
| $extendedClass | string |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Class |

setImplementedInterfaces(array $implementedInterfaces) : \Zend_CodeGenerator_Php_ClasssetImplementedInterfaces()
| Name | Type | Description |
|---|---|---|
| $implementedInterfaces | array |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Class |

setIndentation(string | int $indentation) : \Zend_CodeGenerator_Php_Abstract| Name | Type | Description |
|---|---|---|
| $indentation | string | int |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Abstract |

setMethod(array | \Zend_CodeGenerator_Php_Method $method) : \Zend_CodeGenerator_Php_ClasssetMethod()
| Name | Type | Description |
|---|---|---|
| $method | array | \Zend_CodeGenerator_Php_Method |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Class |

setMethods(array $methods) : \Zend_CodeGenerator_Php_ClasssetMethods()
| Name | Type | Description |
|---|---|---|
| $methods | array |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Class |

setName(string $name) : \Zend_CodeGenerator_Php_ClasssetName()
| Name | Type | Description |
|---|---|---|
| $name | string |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Class |

setOptions(array $options) : \Zend_CodeGenerator_AbstractsetOptions()
Inherited from: \Zend_CodeGenerator_Abstract::setOptions()\Zend_CodeGenerator_Php_Abstract::setOptions()| Name | Type | Description |
|---|---|---|
| $options | array |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Abstract |

setProperties(array $properties) : \Zend_CodeGenerator_Php_ClasssetProperties()
| Name | Type | Description |
|---|---|---|
| $properties | array |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Class |

setProperty(array | \Zend_CodeGenerator_Php_Property $property) : \Zend_CodeGenerator_Php_ClasssetProperty()
| Name | Type | Description |
|---|---|---|
| $property | array | \Zend_CodeGenerator_Php_Property |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Class |

setSourceContent(string $sourceContent) : voidsetSourceContent()
Inherited from: \Zend_CodeGenerator_Abstract::setSourceContent()\Zend_CodeGenerator_Php_Abstract::setSourceContent()| Name | Type | Description |
|---|---|---|
| $sourceContent | string |

setSourceDirty(bool $isSourceDirty = true) : \Zend_CodeGenerator_Php_Abstract| Name | Type | Description |
|---|---|---|
| $isSourceDirty | bool |
| Type | Description |
|---|---|
| \Zend_CodeGenerator_Php_Abstract |