ReflectionProperty::isReadOnly
(PHP 8 >= 8.1.0)
ReflectionProperty::isReadOnly — 检查属性是否为只读
参数
此函数没有参数。
参见
- ReflectionProperty::isPublic() - Checks if property is public
- ReflectionProperty::isProtected() - Checks if property is protected
- ReflectionProperty::isPrivate() - Checks if property is private
- ReflectionProperty::isStatic() - Checks if property is static