Server/Method/Prototype.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_Server  
Subpackage
Method  
Version
$Id$  

\Zend_Server_Method_Prototype

Package: Zend_Server\Method
Method prototype metadata
Category
Zend  
Copyright
Copyright (c) 2005-2014 Zend Technologies USA Inc. (http://www.zend.com)  
License
New BSD License  

Properties

>VPropertyprotectedarray $_parameterNameMap = array()

Map parameter names to parameter index

Default valuearray()Details
Type
array
>VPropertyprotectedarray $_parameters = array()

Method parameters

Default valuearray()Details
Type
array
>VPropertyprotectedstring $_returnType = 'void'

Return type

Default value'void'Details
Type
string

Methods

methodpublic__construct(null | array $options = null) : void

Constructor

Parameters
NameTypeDescription
$optionsnull | array
methodpublicaddParameter(string $parameter) : \Zend_Server_Method_Prototype

Add a parameter

Parameters
NameTypeDescription
$parameterstring
Returns
TypeDescription
\Zend_Server_Method_Prototype
methodpublicaddParameters( $parameters) : \Zend_Server_Method_Prototype

Add parameters

Parameters
NameTypeDescription
$parameters
Returns
TypeDescription
\Zend_Server_Method_Prototype
methodpublicgetParameter(string | int $index) : null | \Zend_Server_Method_Parameter

Retrieve a single parameter by name or index

Parameters
NameTypeDescription
$indexstring | int
Returns
TypeDescription
null | \Zend_Server_Method_Parameter
methodpublicgetParameterObjects() : array

Get parameter objects

Returns
TypeDescription
array
methodpublicgetParameters() : array

Retrieve parameters as list of types

Returns
TypeDescription
array
methodpublicgetReturnType() : string

Retrieve return type

Returns
TypeDescription
string
methodpublicsetOptions(array $options) : \Zend_Server_Method_Prototype

Set object state from array

Parameters
NameTypeDescription
$optionsarray
Returns
TypeDescription
\Zend_Server_Method_Prototype
methodpublicsetParameters(array $parameters) : \Zend_Server_Method_Prototype

Set parameters

Parameters
NameTypeDescription
$parametersarray
Returns
TypeDescription
\Zend_Server_Method_Prototype
methodpublicsetReturnType(string $returnType) : \Zend_Server_Method_Prototype

Set return value

Parameters
NameTypeDescription
$returnTypestring
Returns
TypeDescription
\Zend_Server_Method_Prototype
methodpublictoArray() : array

Serialize to array

Returns
TypeDescription
array
Documentation was generated by phpDocumentor 2.2.0 .