Method definition metadata

category Zend
package Zend_Server
subpackage Zend_Server_Method

 Methods

Constructor

__construct(null | array $options) 

Parameters

$options

nullarray

Add prototype to method definition

addPrototype(array | \Zend\Server\Method\Prototype $prototype) : \Zend\Server\Method\Definition

Add multiple prototypes at once

addPrototypes(array $prototypes) : \Zend\Server\Method\Definition

Parameters

$prototypes

array

Array of \Zend\Server\Method\Prototype objects or arrays

Returns

Get method callback

getCallback() : \Zend\Server\Method\Callback

Retrieve invoke arguments

getInvokeArguments() : array

Returns

array

Get method help

getMethodHelp() : string

Returns

string

Get method name

getName() : string

Returns

string

Get object to use with method calls

getObject() : null | object

Returns

nullobject

Get all prototypes

getPrototypes() : array

Returns

array$prototypes Array of \Zend\Server\Method\Prototype objects or arrays

Set invoke arguments

setInvokeArguments(array $invokeArguments) : \Zend\Server\Method\Definition

Parameters

$invokeArguments

array

Returns

Set method help

setMethodHelp(string $methodHelp) : \Zend\Server\Method\Definition

Parameters

$methodHelp

string

Returns

Set method name

setName(string $name) : \Zend\Server\Method\Definition

Parameters

$name

string

Returns

Set object to use with method calls

setObject(object $object) : \Zend\Server\Method\Definition

Set object state from options

setOptions(array $options) : \Zend\Server\Method\Definition

Parameters

$options

array

Returns

Set all prototypes at once (overwrites)

setPrototypes(array $prototypes) : \Zend\Server\Method\Definition

Parameters

$prototypes

array

Array of \Zend\Server\Method\Prototype objects or arrays

Returns

Serialize to array

toArray() : array

Returns

array

 Properties

 

$callback

$callback : \Zend\Server\Method\Callback

 

$invokeArguments

$invokeArguments : array

 

$methodHelp

$methodHelp : string

 

$name

$name : string

 

$object

$object : null | object

 

<p>Array of \Zend\Server\Method\Prototype objects</p>

$prototypes : array