CodeGenerator/Php/Method.php

Show: PublicProtectedPrivateinherited
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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  
Package
Zend_CodeGenerator  
Subpackage
PHP  
Version
$Id$  

\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-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedstring $_body = null
Default valuenullDetails
Type
string
>VPropertyprotected\Zend_CodeGenerator_Php_Docblock $_docblock = null
Default valuenullDetails
Type
\Zend_CodeGenerator_Php_Docblock
>VPropertyprotectedbool $_isFinal = false
Default valuefalseDetails
Type
bool
>VPropertyprotectedarray $_parameters = array()
Default valuearray()Details
Type
array

Methods

methodpublicfromReflection(\Zend_Reflection_Method $reflectionMethod) : \Zend_CodeGenerator_Php_Method
static

fromReflection()

Parameters
NameTypeDescription
$reflectionMethod\Zend_Reflection_Method
Returns
TypeDescription
\Zend_CodeGenerator_Php_Method
methodpublicgenerate() : string

generate()

Returns
TypeDescription
string
methodpublicgetBody() : string

getBody()

Returns
TypeDescription
string
methodpublicgetParameters() : array

getParameters()

Returns
TypeDescription
arrayArray of Zend_CodeGenerator_Php_Parameter
methodpublicsetBody(string $body) : \Zend_CodeGenerator_Php_Method

setBody()

Parameters
NameTypeDescription
$bodystring
Returns
TypeDescription
\Zend_CodeGenerator_Php_Method
methodpublicsetFinal(bool $isFinal) : void

setFinal()

Parameters
NameTypeDescription
$isFinalbool
methodpublicsetParameter(\Zend_CodeGenerator_Php_Parameter | array $parameter) : \Zend_CodeGenerator_Php_Method

setParameter()

Parameters
NameTypeDescription
$parameter\Zend_CodeGenerator_Php_Parameter | array
Returns
TypeDescription
\Zend_CodeGenerator_Php_Method
methodpublicsetParameters(array $parameters) : \Zend_CodeGenerator_Php_Method

setParameters()

Parameters
NameTypeDescription
$parametersarray
Returns
TypeDescription
\Zend_CodeGenerator_Php_Method
Documentation was generated by phpDocumentor 2.2.0 .