PHP - Manual: ReflectionMethod::isPrivate
2025-02-27
(PHP 5, PHP 7, PHP 8)
ReflectionMethod::isPrivate — 判断方法是否是私有
判断方法是否是私有。
此函数没有参数。
方法私有为 true,否则为 false。
true
false
官方地址:https://www.php.net/manual/en/reflectionmethod.isprivate.php