ReflectionMethod::getClosure

(PHP 5 >= 5.4.0, PHP 7, PHP 8)

ReflectionMethod::getClosure返回动态建立的方法调用接口(译者注:可以使用这个返回值直接调用非公开方法)

说明

public ReflectionMethod::getClosure(?object $object = null): Closure

警告

本函数还未编写文档,仅有参数列表。

参数

object

不可以用于静态方法,可以用于其他类型的方法。

返回值

返回 Closure。产生错误返回 null

更新日志

版本 说明
8.0.0 object 现在可以为 null。
add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top