Method

Closure::bind

Synopsis

public static Closure::bind(mixed, mixed ...): mixed

Area
Runtime\PS\Core\Closure\bindareas

Description

Closure::bind rebinds a closure's scope. phpscript enforces no property visibility and a scope change has nothing to alter and the call answers the closure unchanged. Rebinding $this would change what the body sees and the call refuses it with an error and ignores nothing.

Usage

$value = Closure::bind($arguments);
$fn = Closure::bind(...);

See also