Server/Method/Definition.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_Definition

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

Properties

>VPropertyprotected\Zend_Server_Method_Callback $_callback
>VPropertyprotectedarray $_invokeArguments = array()
Default valuearray()Details
Type
array
>VPropertyprotectedstring $_methodHelp = ''
Default value''Details
Type
string
>VPropertyprotectedstring $_name
Details
Type
string
>VPropertyprotectednull|object $_object
Details
Type
null | object
>VPropertyprotectedarray $_prototypes = array()

Array of Zend_Server_Method_Prototype objects

Default valuearray()Details
Type
array

Methods

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

Constructor

Parameters
NameTypeDescription
$optionsnull | array
methodpublicaddPrototype(array | \Zend_Server_Method_Prototype $prototype) : \Zend_Server_Method_Definition

Add prototype to method definition

Parameters
NameTypeDescription
$prototypearray | \Zend_Server_Method_Prototype
Returns
TypeDescription
\Zend_Server_Method_Definition
methodpublicaddPrototypes(array $prototypes) : \Zend_Server_Method_Definition

Add multiple prototypes at once

Parameters
NameTypeDescription
$prototypesarray

Array of Zend_Server_Method_Prototype objects or arrays

Returns
TypeDescription
\Zend_Server_Method_Definition
methodpublicgetCallback() : \Zend_Server_Method_Callback

Get method callback

Returns
TypeDescription
\Zend_Server_Method_Callback
methodpublicgetInvokeArguments() : array

Retrieve invoke arguments

Returns
TypeDescription
array
methodpublicgetMethodHelp() : string

Get method help

Returns
TypeDescription
string
methodpublicgetName() : string

Get method name

Returns
TypeDescription
string
methodpublicgetObject() : null | object

Get object to use with method calls

Returns
TypeDescription
null | object
methodpublicgetPrototypes() : array

Get all prototypes

Returns
TypeDescription
array$prototypes Array of Zend_Server_Method_Prototype objects or arrays
methodpublicsetCallback(array | \Zend_Server_Method_Callback $callback) : \Zend_Server_Method_Definition

Set method callback

Parameters
NameTypeDescription
$callbackarray | \Zend_Server_Method_Callback
Returns
TypeDescription
\Zend_Server_Method_Definition
methodpublicsetInvokeArguments(array $invokeArguments) : \Zend_Server_Method_Definition

Set invoke arguments

Parameters
NameTypeDescription
$invokeArgumentsarray
Returns
TypeDescription
\Zend_Server_Method_Definition
methodpublicsetMethodHelp(string $methodHelp) : \Zend_Server_Method_Definition

Set method help

Parameters
NameTypeDescription
$methodHelpstring
Returns
TypeDescription
\Zend_Server_Method_Definition
methodpublicsetName(string $name) : \Zend_Server_Method_Definition

Set method name

Parameters
NameTypeDescription
$namestring
Returns
TypeDescription
\Zend_Server_Method_Definition
methodpublicsetObject(object $object) : \Zend_Server_Method_Definition

Set object to use with method calls

Parameters
NameTypeDescription
$objectobject
Returns
TypeDescription
\Zend_Server_Method_Definition
methodpublicsetOptions(array $options) : \Zend_Server_Method_Definition

Set object state from options

Parameters
NameTypeDescription
$optionsarray
Returns
TypeDescription
\Zend_Server_Method_Definition
methodpublicsetPrototypes(array $prototypes) : \Zend_Server_Method_Definition

Set all prototypes at once (overwrites)

Parameters
NameTypeDescription
$prototypesarray

Array of Zend_Server_Method_Prototype objects or arrays

Returns
TypeDescription
\Zend_Server_Method_Definition
methodpublictoArray() : array

Serialize to array

Returns
TypeDescription
array
Documentation was generated by phpDocumentor 2.2.0 .