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 license@zend.com so we can send you a copy immediately.
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
- Package
- Zend_CodeGenerator
- Subpackage
- PHP
- Version
- $Id$
\Zend_CodeGenerator_Php_Class
Package: Zend_CodeGenerator
- Parent(s)
- \Zend_CodeGenerator_Php_Abstract < \Zend_CodeGenerator_Abstract
- Category
- Zend
- Copyright
- Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties
Methods
fromReflection(\Zend_Reflection_Class $reflectionClass) : \Zend_CodeGenerator_Php_Class
static
fromReflection() - build a Code Generation PHP Object from a Class Reflection
Parameters
Returns
Name | Type | Description |
---|---|---|
$reflectionClass | \Zend_Reflection_Class |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |
getConstant(string $constName) : \Zend_CodeGenerator_Php_Property
getConstant()
Parameters
Returns
Name | Type | Description |
---|---|---|
$constName | string |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Property |
getDocblock() : \Zend_CodeGenerator_Php_Docblock
getDocblock()
Returns
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Docblock |
getMethod(string $methodName) : \Zend_CodeGenerator_Php_Method
getMethod()
Parameters
Returns
Name | Type | Description |
---|---|---|
$methodName | string |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Method |
getProperty(string $propertyName) : \Zend_CodeGenerator_Php_Property
getProperty()
Parameters
Returns
Name | Type | Description |
---|---|---|
$propertyName | string |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Property |
hasConstant(string $constName) : bool
hasConstant()
Parameters
Returns
Name | Type | Description |
---|---|---|
$constName | string |
Type | Description |
---|---|
bool |
hasMethod(string $methodName) : bool
hasMethod()
Parameters
Returns
Name | Type | Description |
---|---|---|
$methodName | string |
Type | Description |
---|---|
bool |
hasProperty(string $propertyName) : bool
hasProperty()
Parameters
Returns
Name | Type | Description |
---|---|---|
$propertyName | string |
Type | Description |
---|---|
bool |
setAbstract(bool $isAbstract) : \Zend_CodeGenerator_Php_Class
setAbstract()
Parameters
Returns
Name | Type | Description |
---|---|---|
$isAbstract | bool |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |
setConstant(array | \Zend_CodeGenerator_Php_Property $const) : \Zend_CodeGenerator_Php_Class
setConstant()
Parameters
Returns
Name | Type | Description |
---|---|---|
$const | array | \Zend_CodeGenerator_Php_Property |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |
setConstants(array $constants) : \Zend_CodeGenerator_Php_Class
setConstants()
Parameters
Returns
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
Parameters
Returns
Name | Type | Description |
---|---|---|
$docblock | \Zend_CodeGenerator_Php_Docblock | array | string |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_File |
setExtendedClass(string $extendedClass) : \Zend_CodeGenerator_Php_Class
setExtendedClass()
Parameters
Returns
Name | Type | Description |
---|---|---|
$extendedClass | string |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |
setImplementedInterfaces(array $implementedInterfaces) : \Zend_CodeGenerator_Php_Class
setImplementedInterfaces()
Parameters
Returns
Name | Type | Description |
---|---|---|
$implementedInterfaces | array |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |
setMethod(array | \Zend_CodeGenerator_Php_Method $method) : \Zend_CodeGenerator_Php_Class
setMethod()
Parameters
Returns
Name | Type | Description |
---|---|---|
$method | array | \Zend_CodeGenerator_Php_Method |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |
setMethods(array $methods) : \Zend_CodeGenerator_Php_Class
setMethods()
Parameters
Returns
Name | Type | Description |
---|---|---|
$methods | array |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |
setName(string $name) : \Zend_CodeGenerator_Php_Class
setName()
Parameters
Returns
Name | Type | Description |
---|---|---|
$name | string |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |
setProperties(array $properties) : \Zend_CodeGenerator_Php_Class
setProperties()
Parameters
Returns
Name | Type | Description |
---|---|---|
$properties | array |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |
setProperty(array | \Zend_CodeGenerator_Php_Property $property) : \Zend_CodeGenerator_Php_Class
setProperty()
Parameters
Returns
Name | Type | Description |
---|---|---|
$property | array | \Zend_CodeGenerator_Php_Property |
Type | Description |
---|---|
\Zend_CodeGenerator_Php_Class |