mirror of
https://github.com/php/php-src.git
synced 2024-12-21 07:51:23 +08:00
21 lines
483 B
PHP
21 lines
483 B
PHP
<?php
|
|
|
|
Class Closure
|
|
{
|
|
private function __construct() {}
|
|
|
|
/** @return ?Closure */
|
|
static function bind(Closure $closure, ?object $newthis, $newscope = UNKNOWN) {}
|
|
|
|
/** @return ?Closure */
|
|
function bindTo(?object $newthis, $newscope = UNKNOWN) {}
|
|
|
|
function call(object $newthis, ...$parameters) {}
|
|
|
|
/**
|
|
* @param callable $callable Not a proper type annotation due to bug #78770
|
|
* @return Closure
|
|
*/
|
|
function fromCallable($callable) {}
|
|
}
|