ReflectionProperty::setAccessible

Set property accessibility

Description

public void ReflectionProperty::setAccessible ( bool $accessible )

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

  • ReflectionProperty::isPrivate
  • ReflectionProperty::isProtected