I've been studying Visibility issue in PHP (public, private, protected) and wondered how is this sort of "dom-building" is implemented in PHP? I mean there should be some kind of algorithm that PHP uses to go through all your classes and establish relations between them. Not sure if it is called "dom-building" though, but I think the same algorithms are utilized by the modern IDE's that may use it for auto-completion.
Can someone redirect me to a nice resource? Thank you.