2019-10-15 20:30:23 +08:00
|
|
|
<?php
|
|
|
|
|
2021-02-13 06:33:09 +08:00
|
|
|
/** @generate-class-entries */
|
2020-05-19 19:56:30 +08:00
|
|
|
|
2021-07-16 18:46:43 +08:00
|
|
|
/**
|
|
|
|
* @strict-properties
|
|
|
|
* @not-serializable
|
|
|
|
*/
|
2020-05-19 19:56:30 +08:00
|
|
|
final class Closure
|
2019-10-15 20:30:23 +08:00
|
|
|
{
|
|
|
|
private function __construct() {}
|
|
|
|
|
2020-09-21 20:45:31 +08:00
|
|
|
public static function bind(
|
|
|
|
Closure $closure,
|
|
|
|
?object $newThis,
|
|
|
|
object|string|null $newScope = "static"
|
|
|
|
): ?Closure {}
|
2019-10-15 20:30:23 +08:00
|
|
|
|
2020-09-21 20:45:31 +08:00
|
|
|
public function bindTo(?object $newThis, object|string|null $newScope = "static"): ?Closure {}
|
2019-10-15 20:30:23 +08:00
|
|
|
|
2020-09-29 04:19:20 +08:00
|
|
|
public function call(object $newThis, mixed ...$args): mixed {}
|
2019-10-15 20:30:23 +08:00
|
|
|
|
2020-08-14 16:22:42 +08:00
|
|
|
public static function fromCallable(callable $callback): Closure {}
|
2019-10-15 20:30:23 +08:00
|
|
|
}
|