API Documentation

Zend/CodeGenerator/Php/Method.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: Method.php 24594 2012-01-05 21:27:01Z matthew $  

\Zend_CodeGenerator_Php_Method

Package: Zend\CodeGenerator

Parent(s)
\Zend_CodeGenerator_Php_Member_Abstract < \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

Propertyprotectedstring  $_body= 'null'

Default valuenullDetails
Type
string
Propertyprotected\Zend_CodeGenerator_Php_Docblock  $_docblock= 'null'

Default valuenullDetails
Type
\Zend_CodeGenerator_Php_Docblock
Propertyprotectedbool  $_isFinal= 'false'

Default valuefalseDetails
Type
bool
Propertyprotectedarray  $_parameters= 'array()'

Default valuearray()Details
Type
array

Methods

methodpublicfromReflection( \Zend_Reflection_Method $reflectionMethod ) : \Zend_CodeGenerator_Php_Method
static

fromReflection()

Parameters
Name Type Description
$reflectionMethod \Zend_Reflection_Method
Returns
Type Description
\Zend_CodeGenerator_Php_Method
methodpublicgenerate( ) : string

generate()

Returns
Type Description
string
methodpublicgetBody( ) : string

getBody()

Returns
Type Description
string
methodpublicgetParameters( ) : array

getParameters()

Returns
Type Description
array Array of Zend_CodeGenerator_Php_Parameter
methodpublicsetBody( string $body ) : \Zend_CodeGenerator_Php_Method

setBody()

Parameters
Name Type Description
$body string
Returns
Type Description
\Zend_CodeGenerator_Php_Method
methodpublicsetFinal( bool $isFinal ) : void

setFinal()

Parameters
Name Type Description
$isFinal bool
methodpublicsetParameter( \Zend_CodeGenerator_Php_Parameter|array $parameter ) : \Zend_CodeGenerator_Php_Method

setParameter()

Parameters
Name Type Description
$parameter \Zend_CodeGenerator_Php_Parameter|array
Returns
Type Description
\Zend_CodeGenerator_Php_Method
methodpublicsetParameters( array $parameters ) : \Zend_CodeGenerator_Php_Method

setParameters()

Parameters
Name Type Description
$parameters array
Returns
Type Description
\Zend_CodeGenerator_Php_Method
Documentation was generated by DocBlox 0.15.1.