Checking method visibility in PHP
- by phobia
Is there any way of checking if a class method has been declared as private or public?
I'm working on a controller where the url is mapped to methods in the class, and I only want to trigger the methods if they are defined as public.