mirror of
https://github.com/php/php-src.git
synced 2025-08-15 13:38:49 +02:00
26 lines
600 B
PHP
26 lines
600 B
PHP
<?php
|
|
|
|
/** @generate-class-entries */
|
|
|
|
/**
|
|
* @strict-properties
|
|
* @not-serializable
|
|
*/
|
|
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 {}
|
|
|
|
public static function getCurrent(): Closure {}
|
|
}
|