ReflectionMethod::setAccessible

( excerpt from http://php

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

net/manual/en/reflectionmethod.setaccessible.php )

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

Parameters

  • bool $accessible

Return Values

  • mixed - No value is returned.