Php/docs/reflectionproperty.ispublic
来自菜鸟教程
ReflectionProperty::isPublic
(PHP 5, PHP 7)
ReflectionProperty::isPublic — Checks if property is public
说明
public ReflectionProperty::isPublic ( ) : bool
Checks whether the property is public.
参数
此函数没有参数。
返回值
true
if the property is public, false
otherwise.
参见
- ReflectionProperty::isProtected() - Checks if property is protected
- ReflectionProperty::isPrivate() - Checks if property is private
- ReflectionProperty::isStatic() - Checks if property is static