php-src/Zend/zend_closures.stub.php

25 lines
547 B
PHP
Raw Normal View History

<?php
/** @generate-class-entries */
2020-05-19 19:56:30 +08:00
/**
* @strict-properties
* @not-serializable
*/
2020-05-19 19:56:30 +08:00
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 {}
}