mirror of
https://github.com/php/php-src.git
synced 2024-12-17 05:50:14 +08:00
7aa2d3519b
Closes GH-6228
21 lines
499 B
PHP
21 lines
499 B
PHP
<?php
|
|
|
|
/** @generate-function-entries */
|
|
|
|
final class Closure
|
|
{
|
|
private function __construct() {}
|
|
|
|
public static function bind(
|
|
Closure $closure,
|
|
?object $newThis,
|
|
object|string|null $newScope = "static"
|
|
): ?Closure {}
|
|
|
|
public function bindTo(?object $newThis, object|string|null $newScope = "static"): ?Closure {}
|
|
|
|
public function call(object $newThis, mixed ...$args): mixed {}
|
|
|
|
public static function fromCallable(callable $callback): Closure {}
|
|
}
|