PHP-Parser icon indicating copy to clipboard operation
PHP-Parser copied to clipboard

Interface for things with public/protected/private visibility

Open legoktm opened this issue 7 years ago • 1 comments

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 avatar Dec 31 '17 12:12 legoktm

@legoktm Could you elaborate how would you use it?

carusogabriel avatar Jan 13 '18 13:01 carusogabriel