php-internal-docs 8.4.8
Unofficial docs for php/php-src
Loading...
Searching...
No Matches
zend_closures.stub.php
Go to the documentation of this file.
1<?php
2
4
9final class Closure
10{
11 private function __construct() {}
12
13 public static function bind(
14 Closure $closure,
15 ?object $newThis,
16 object|string|null $newScope = "static"
17 ): ?Closure {}
18
19 public function bindTo(?object $newThis, object|string|null $newScope = "static"): ?Closure {}
20
21 public function call(object $newThis, mixed ...$args): mixed {}
22
23 public static function fromCallable(callable $callback): Closure {}
24}
call(object $newThis, mixed ... $args)
bindTo(?object $newThis, object|string|null $newScope="static")
static bind(Closure $closure, ?object $newThis, object|string|null $newScope="static")
static fromCallable(callable $callback)
function(EX_VAR(opline->result.var))
object