API Documentation

Zend/CodeGenerator/Php/Class.php

Show: inherited
Table of Contents

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-2012 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_CodeGenerator  
Subpackage
PHP  
Version
$Id: Class.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_CodeGenerator_Php_Class

Package: Zend\CodeGenerator

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  

Properties

Propertyprotected\Zend_CodeGenerator_Php_Docblock  $_docblock= 'null'

Default valuenullDetails
Type
\Zend_CodeGenerator_Php_Docblock
Propertyprotectedstring  $_extendedClass= 'null'

Default valuenullDetails
Type
string
Propertyprotectedarray  $_implementedInterfaces= 'array()'

Array of string names
Default valuearray()Details
Type
array
Propertyprotectedbool  $_isAbstract= 'false'

Default valuefalseDetails
Type
bool
Propertyprotectedarray  $_methods= 'null'

Array of methods
Default valuenullDetails
Type
array
Propertyprotectedstring  $_name= 'null'

Default valuenullDetails
Type
string
Propertyprotectedarray  $_properties= 'null'

Array of properties
Default valuenullDetails
Type
array

Methods

methodprotected_init( ) : void

_init() - is called at construction time

methodpublicfromReflection( \Zend_Reflection_Class $reflectionClass ) : \Zend_CodeGenerator_Php_Class
static

fromReflection() - build a Code Generation PHP Object from a Class Reflection

Parameters
Name Type Description
$reflectionClass \Zend_Reflection_Class
Returns
Type Description
\Zend_CodeGenerator_Php_Class
methodpublicgenerate( ) : string

generate()

Returns
Type Description
string
methodpublicgetDocblock( ) : \Zend_CodeGenerator_Php_Docblock

getDocblock()

Returns
Type Description
\Zend_CodeGenerator_Php_Docblock
methodpublicgetExtendedClass( ) : string

getExtendedClass()

Returns
Type Description
string
methodpublicgetImplementedInterfaces( ) : array

getImplementedInterfaces

Returns
Type Description
array
methodpublicgetMethod( string $methodName ) : \Zend_CodeGenerator_Php_Method

getMethod()

Parameters
Name Type Description
$methodName string
Returns
Type Description
\Zend_CodeGenerator_Php_Method
methodpublicgetMethods( ) : array

getMethods()

Returns
Type Description
array
methodpublicgetName( ) : string

getName()

Returns
Type Description
string
methodpublicgetProperties( ) : array

getProperties()

Returns
Type Description
array
methodpublicgetProperty( string $propertyName ) : \Zend_CodeGenerator_Php_Property

getProperty()

Parameters
Name Type Description
$propertyName string
Returns
Type Description
\Zend_CodeGenerator_Php_Property
methodpublichasMethod( string $methodName ) : bool

hasMethod()

Parameters
Name Type Description
$methodName string
Returns
Type Description
bool
methodpublichasProperty( string $propertyName ) : bool

hasProperty()

Parameters
Name Type Description
$propertyName string
Returns
Type Description
bool
methodpublicisAbstract( ) : bool

isAbstract()

Returns
Type Description
bool
methodpublicisSourceDirty( ) : bool

isSourceDirty()

Returns
Type Description
bool
methodpublicsetAbstract( bool $isAbstract ) : \Zend_CodeGenerator_Php_Class

setAbstract()

Parameters
Name Type Description
$isAbstract bool
Returns
Type Description
\Zend_CodeGenerator_Php_Class
methodpublicsetDocblock( \Zend_CodeGenerator_Php_Docblock|array|string $docblock ) : \Zend_CodeGenerator_Php_File

setDocblock() Set the docblock

Parameters
Name Type Description
$docblock \Zend_CodeGenerator_Php_Docblock|array|string
Returns
Type Description
\Zend_CodeGenerator_Php_File
methodpublicsetExtendedClass( string $extendedClass ) : \Zend_CodeGenerator_Php_Class

setExtendedClass()

Parameters
Name Type Description
$extendedClass string
Returns
Type Description
\Zend_CodeGenerator_Php_Class
methodpublicsetImplementedInterfaces( array $implementedInterfaces ) : \Zend_CodeGenerator_Php_Class

setImplementedInterfaces()

Parameters
Name Type Description
$implementedInterfaces array
Returns
Type Description
\Zend_CodeGenerator_Php_Class
methodpublicsetMethod( array|\Zend_CodeGenerator_Php_Method $method ) : \Zend_CodeGenerator_Php_Class

setMethod()

Parameters
Name Type Description
$method array|\Zend_CodeGenerator_Php_Method
Returns
Type Description
\Zend_CodeGenerator_Php_Class
methodpublicsetMethods( array $methods ) : \Zend_CodeGenerator_Php_Class

setMethods()

Parameters
Name Type Description
$methods array
Returns
Type Description
\Zend_CodeGenerator_Php_Class
methodpublicsetName( string $name ) : \Zend_CodeGenerator_Php_Class

setName()

Parameters
Name Type Description
$name string
Returns
Type Description
\Zend_CodeGenerator_Php_Class
methodpublicsetProperties( array $properties ) : \Zend_CodeGenerator_Php_Class

setProperties()

Parameters
Name Type Description
$properties array
Returns
Type Description
\Zend_CodeGenerator_Php_Class
methodpublicsetProperty( array|\Zend_CodeGenerator_Php_Property $property ) : \Zend_CodeGenerator_Php_Class

setProperty()

Parameters
Name Type Description
$property array|\Zend_CodeGenerator_Php_Property
Returns
Type Description
\Zend_CodeGenerator_Php_Class
Documentation was generated by DocBlox 0.15.1.