PHP-Parser
PHP-Parser copied to clipboard
Interface for things with public/protected/private visibility
First, thanks for the awesome library, it worked pretty well for my needs, and the documentation was great. :-)
I was doing comparisons of visibility ([[https://gitlab.com/legoktm/semver-checker/blob/master/src/Parser/ClassTracker.php#L265|code]]), and ran into multiple things that had isPublic(), isProtected(), and isPrivate() functions: class methods, properties, and class constants. Would an interface for those three functions make sense? I would find it useful at least.
@legoktm Could you elaborate how would you use it?