ReflectionMethod::isPrivate

(PHP 5, PHP 7, PHP 8)

ReflectionMethod::isPrivate — 判断方法是否是私有

说明

public ReflectionMethod::isPrivate(): bool

判断方法是否是私有。

参数

此函数没有参数。

返回值

方法私有为 true,否则为 false。

参见

+add a note

User Contributed Notes

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