Method callback metadata

category Zend
package Zend_Server
subpackage Method
copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com)
license New BSD License

 Methods

Constructor

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

Parameters

$options

nullarray

Get callback class

getClass() : string | null

Returns

stringnull

Get callback function

getFunction() : null | string

Returns

nullstring

Get callback class method

getMethod() : null | string

Returns

nullstring

Get callback type

getType() : string

Returns

string

Set callback class

setClass(string $class) : \Zend_Server_Method_Callback

Parameters

$class

string

Returns

\Zend_Server_Method_Callback

Set callback function

setFunction(string $function) : \Zend_Server_Method_Callback

Parameters

$function

string

Returns

\Zend_Server_Method_Callback

Set callback class method

setMethod(string $method) : \Zend_Server_Method_Callback

Parameters

$method

string

Returns

\Zend_Server_Method_Callback

Set object state from array of options

setOptions(array $options) : \Zend_Server_Method_Callback

Parameters

$options

array

Returns

\Zend_Server_Method_Callback

Set callback type

setType(string $type) : \Zend_Server_Method_Callback

Parameters

$type

string

Exceptions

\Zend_Server_Exception

Returns

\Zend_Server_Method_Callback

Cast callback to array

toArray() : array

Returns

array

 Properties

 

Class name for class method callback

$_class : string

Default

 

Function name for function callback

$_function : string

Default

 

Method name for class method callback

$_method : string

Default

 

Callback type

$_type : string

Default

 

Valid callback types

$_types : array

Default

array('function', 'static', 'instance')