mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
20 lines
554 B
PHP
20 lines
554 B
PHP
<?php
|
|
|
|
/** @generate-function-entries */
|
|
|
|
final class Closure
|
|
{
|
|
private function __construct() {}
|
|
|
|
public static function bind(Closure $closure, ?object $newthis, $newscope = UNKNOWN): ?Closure {}
|
|
|
|
/** @alias Closure::bind */
|
|
public function bindTo(?object $newthis, $newscope = UNKNOWN): ?Closure {}
|
|
|
|
/** @return mixed */
|
|
public function call(object $newthis, ...$parameters) {}
|
|
|
|
/** @param callable $callable Not a proper type annotation due to bug #78770 */
|
|
public static function fromCallable($callable): Closure {}
|
|
}
|