ReflectionMethod::isPublic

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

public function isPublic(): bool;

Checks if the method is public.

Returns

  • bool - TRUE if the method is public, otherwise FALSE