Server/Method/Prototype.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 [email protected] 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_Server
- Subpackage
- Method
- Version
- $Id: Prototype.php 24593 2012-01-05 20:35:02Z matthew $
\Zend_Server_Method_Prototype
Package: Zend\Server\Method
Method prototype metadata
- Category
- Zend
- Copyright
- Copyright (c) 2005-2012 Zend Technologies USA Inc. (http://www.zend.com)
- License
- New BSD License
Properties


array $_parameterNameMap = array()
<p>Map parameter names to parameter index</p>
Default value
array()
Details- Type
- array
Methods


__construct(null | array $options = null) : void
Constructor
Parameters
Name | Type | Description |
---|---|---|
$options | null | array |


addParameter(string $parameter) : \Zend_Server_Method_Prototype
Add a parameter
Parameters
Returns
Name | Type | Description |
---|---|---|
$parameter | string |
Type | Description |
---|---|
\Zend_Server_Method_Prototype |


addParameters( $parameters) : \Zend_Server_Method_Prototype
Add parameters
Parameters
Returns
Name | Type | Description |
---|---|---|
$parameters |
Type | Description |
---|---|
\Zend_Server_Method_Prototype |


getParameter(string | int $index) : null | \Zend_Server_Method_Parameter
Retrieve a single parameter by name or index
Parameters
Returns
Name | Type | Description |
---|---|---|
$index | string | int |
Type | Description |
---|---|
null | \Zend_Server_Method_Parameter |


setOptions(array $options) : \Zend_Server_Method_Prototype
Set object state from array
Parameters
Returns
Name | Type | Description |
---|---|---|
$options | array |
Type | Description |
---|---|
\Zend_Server_Method_Prototype |


setParameters(array $parameters) : \Zend_Server_Method_Prototype
Set parameters
Parameters
Returns
Name | Type | Description |
---|---|---|
$parameters | array |
Type | Description |
---|---|
\Zend_Server_Method_Prototype |


setReturnType(string $returnType) : \Zend_Server_Method_Prototype
Set return value
Parameters
Returns
Name | Type | Description |
---|---|---|
$returnType | string |
Type | Description |
---|---|
\Zend_Server_Method_Prototype |