CodeGenerator/Php/Class.php
Zend Framework
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 [email protected] 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"
Line feed to use in place of EOL
Inherited from: \Zend_CodeGenerator_Php_Abstract::LINE_FEED- Inherited_from
- \Zend_CodeGenerator_Php_Abstract::LINE_FEED
Properties


array $_implementedInterfaces = array()
array()
Details- Type
- array


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


bool $_isSourceDirty = true
true
Details- Type
- bool
- Inherited_from
- \Zend_CodeGenerator_Php_Abstract::$$_isSourceDirty


string $_sourceContent = null
null
Details- 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_Class
fromReflection() - 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_Property
getConstant()
Name | Type | Description |
---|---|---|
$constName | string |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Property |


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


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


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


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


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


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


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


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


setConfig(\Zend_Config $config) : \Zend_CodeGenerator_Abstract
setConfig()
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_Class
setConstant()
Name | Type | Description |
---|---|---|
$const | array | \Zend_CodeGenerator_Php_Property |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |


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


setDocblock(\Zend_CodeGenerator_Php_Docblock | array | string $docblock) : \Zend_CodeGenerator_Php_File
setDocblock() 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_Class
setExtendedClass()
Name | Type | Description |
---|---|---|
$extendedClass | string |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |


setImplementedInterfaces(array $implementedInterfaces) : \Zend_CodeGenerator_Php_Class
setImplementedInterfaces()
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_Class
setMethod()
Name | Type | Description |
---|---|---|
$method | array | \Zend_CodeGenerator_Php_Method |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |


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


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


setOptions(array $options) : \Zend_CodeGenerator_Abstract
setOptions()
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_Class
setProperties()
Name | Type | Description |
---|---|---|
$properties | array |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |


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


setSourceContent(string $sourceContent) : void
setSourceContent()
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 |