ReflectionProperty::setAccessible

(PHP 5 >= 5.3.0, PHP 7)

ReflectionProperty::setAccessibleSet property accessibility

Description

public ReflectionProperty::setAccessible ( bool $accessible ) : void

Sets a property to be accessible. For example, it may allow protected and private properties to be accessed.

Parameters

accessible

true to allow accessibility, or false.

Return Values

No value is returned.

See Also

© 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/reflectionproperty.setaccessible.php