Server/Method/Parameter.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_Parameter

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

Properties

>VPropertyprotectedmixed $_defaultValue

Default parameter value

Details
Type
mixed
>VPropertyprotectedstring $_description = ''

Parameter description

Default value''Details
Type
string
>VPropertyprotectedstring $_name

Parameter variable name

Details
Type
string
>VPropertyprotectedbool $_optional = false

Is parameter optional?

Default valuefalseDetails
Type
bool
>VPropertyprotectedstring $_type = 'mixed'

Parameter type

Default value'mixed'Details
Type
string

Methods

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

Constructor

Parameters
NameTypeDescription
$optionsnull | array
methodpublicgetDefaultValue() : mixed

Retrieve default value

Returns
TypeDescription
mixed
methodpublicgetDescription() : string

Retrieve description

Returns
TypeDescription
string
methodpublicgetName() : string

Retrieve name

Returns
TypeDescription
string
methodpublicgetType() : string

Retrieve parameter type

Returns
TypeDescription
string
methodpublicisOptional() : bool

Is the parameter optional?

Returns
TypeDescription
bool
methodpublicsetDefaultValue(mixed $defaultValue) : \Zend_Server_Method_Parameter

Set default value

Parameters
NameTypeDescription
$defaultValuemixed
Returns
TypeDescription
\Zend_Server_Method_Parameter
methodpublicsetDescription(string $description) : \Zend_Server_Method_Parameter

Set description

Parameters
NameTypeDescription
$descriptionstring
Returns
TypeDescription
\Zend_Server_Method_Parameter
methodpublicsetName(string $name) : \Zend_Server_Method_Parameter

Set name

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
\Zend_Server_Method_Parameter
methodpublicsetOptional(bool $flag) : \Zend_Server_Method_Parameter

Set optional flag

Parameters
NameTypeDescription
$flagbool
Returns
TypeDescription
\Zend_Server_Method_Parameter
methodpublicsetOptions(array $options) : \Zend_Server_Method_Parameter

Set object state from array of options

Parameters
NameTypeDescription
$optionsarray
Returns
TypeDescription
\Zend_Server_Method_Parameter
methodpublicsetType(string $type) : \Zend_Server_Method_Parameter

Set parameter type

Parameters
NameTypeDescription
$typestring
Returns
TypeDescription
\Zend_Server_Method_Parameter
methodpublictoArray() : array

Cast to array

Returns
TypeDescription
array
Documentation was generated by phpDocumentor 2.2.0 .