class Callback

PHP callable tools.

Methods

static Closure
closure($callable, $m = NULL)

No description

static mixed
invoke($callable)

Invokes callback.

static mixed
invokeArgs($callable, array $args = array())

Invokes callback with an array of parameters.

static mixed
invokeSafe($function, array $args, $onError)

Invokes internal PHP function with own error handler.

static callable
check($callable, $syntax = FALSE)

No description

static string
toString($callable)

No description

toReflection($callable)

No description

static bool
isStatic($callable)

No description

static callable
unwrap(Closure $closure)

Unwraps closure created by self::closure(), used i.e. by ObjectMixin in PHP < 5.4

Details

at line 26
static Closure closure($callable, $m = NULL)

No description

Parameters

$callable
$m

Return Value

Closure

at line 47
static mixed invoke($callable)

Invokes callback.

Parameters

$callable

Return Value

mixed

at line 58
static mixed invokeArgs($callable, array $args = array())

Invokes callback with an array of parameters.

Parameters

$callable
array $args

Return Value

mixed

at line 71
static mixed invokeSafe($function, array $args, $onError)

internal  
 

Invokes internal PHP function with own error handler.

Parameters

$function
array $args
$onError

Return Value

mixed

at line 104
static callable check($callable, $syntax = FALSE)

No description

Parameters

$callable
$syntax

Return Value

callable

at line 119
static string toString($callable)

No description

Parameters

$callable

Return Value

string

at line 138
static ReflectionMethod|ReflectionFunction toReflection($callable)

No description

Parameters

$callable

Return Value

ReflectionMethod|ReflectionFunction

at line 163
static bool isStatic($callable)

No description

Parameters

$callable

Return Value

bool

at line 174
static callable unwrap(Closure $closure)

internal  
 

Unwraps closure created by self::closure(), used i.e. by ObjectMixin in PHP < 5.4

Parameters

Closure $closure

Return Value

callable