Method callback metadata

package Default

 Methods

Constructor

__construct(null|array $options = null

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) : Callback

Parameters

$type

string

Exceptions

\Zend\Server\Exception\InvalidArgumentException

Returns

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')