ReflectionProperty
PHP Manual

ReflectionProperty::setAccessible

(PHP 5 >= 5.3.0, PHP 7)

ReflectionProperty::setAccessibleSet property accessibility

Descrição

public void ReflectionProperty::setAccessible ( bool $accessible )

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

Parâmetros

accessible

TRUE to allow accessibility, or FALSE.

Valor Retornado

Não há valor retornado.

Veja Também


ReflectionProperty
PHP Manual