__construct()
__invoke()
call()
getCallback()
getMetadata()
getMetadatum()
registerCallback()
validateStringCallbackFor54()
$callback
$isPhp54
$metadata
CallbackHandler
A handler for an event, event, filterchain, etc. Abstracts PHP callbacks, primarily to allow for lazy-loading and ensuring availability of default arguments (currying).
__construct(string | array | object | \Zend\Stdlib\callable $callback, array $metadata)
stringarrayobject\Zend\Stdlib\callable
PHP callback
array
Callback metadata
__invoke() : mixed
mixed
call(array $args) : mixed
array
Arguments to pass to callback
mixed
getCallback() : \Zend\Stdlib\callable
\Zend\Stdlib\callable
getMetadata() : array
array
getMetadatum(string $name) : mixed
string
mixed
registerCallback(\Zend\Stdlib\callable $callback) : void
\Zend\Stdlib\callable
\Zend\Stdlib\Exception\InvalidCallbackException |
---|
validateStringCallbackFor54(string $callback) : true | array
Validates that a static method call in PHP 5.4 will actually work
string
\Zend\Stdlib\Exception\InvalidCallbackException |
if invalid |
---|
true
array
$callback : string | array | \Zend\Stdlib\callable
$isPhp54 : bool