ReflectionMethod::setAccessible

( excerpt from http://php.net/manual/en/reflectionmethod.setaccessible.php )

public function setAccessible(
  bool $accessible,
): void;

Sets a method to be accessible. For example, it may allow protected and private methods to be invoked.

Parameters

  • bool $accessible

Returns

  • mixed - No value is returned.