zend_closures.stub.php 547 B

123456789101112131415161718192021222324
  1. <?php
  2. /** @generate-class-entries */
  3. /**
  4. * @strict-properties
  5. * @not-serializable
  6. */
  7. final class Closure
  8. {
  9. private function __construct() {}
  10. public static function bind(
  11. Closure $closure,
  12. ?object $newThis,
  13. object|string|null $newScope = "static"
  14. ): ?Closure {}
  15. public function bindTo(?object $newThis, object|string|null $newScope = "static"): ?Closure {}
  16. public function call(object $newThis, mixed ...$args): mixed {}
  17. public static function fromCallable(callable $callback): Closure {}
  18. }