ReflectionMethod::isPublic
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Checks if method is public
Description
ReflectionMethod::isPublic(): bool
Checks if the method is public.
Parameters Parameters
Return Values
true if the method is public, otherwise false
See Also
ReflectionMethod::isPrivate