The Closure classIntroductionClass used to represent anonymous functions. Anonymous functions yield objects of this type. This class has methods that allow further control of the anonymous function after it has been created.
Besides the methods listed here, this class also has an
Class synopsis
final
Closure
/* Methods */
private __construct()
public static Closurenull bind(Closure
$closure , objectnull $newThis , objectstringnull $newScope = "static")public Closurenull bindTo(objectnull
$newThis , objectstringnull $newScope = "static")public mixed call(object
$newThis , mixed ...$args )public static Closure fromCallable(callable
$callback )
|