Looks like this requires deeper changes than I originally thought (nosurprise there).

It's easy to make PHPObjectBuilder and put the php-specific things inthere. However, in order to let the other classes derive from thatPHPObjectBuilder, we'd need something like this (I originally thoughtit would work but it doesn't):

Then we'd just add another key to the propertiesfile and off we go.But as I said, it looks like inheriting from anything but a 'static'type is impossible.

Next option is to recreate the OMBuilder, ObjectBuilder andPeerBuilder in the language-specific directorie and have them derivefrom the language-neutral classes (to avoid duplicating code). This isfine for OMBuilder (I wrote a PHPOMBuilder that derives from OMBuilderand let all classes that originally derived from OMBuilder derive fromPHPOMBuilder.) But for PeerBuilder, that doesn't work becausePeerBuilder itself derives from OMBuilder, whereas it should derivefrom PHPOMBuilder, or CPPOMBuilder, as required. The alternative is tomove the code from PeerBuilder to PHPPeerBuilder, but that same codewould have to be duplicated in CPPPeerBuilder, which is not good.In C++ I'd solve this with either multiple inheritance to pull in thecommon functionality from a shared base class or with templates to letPeerBuilder be templated to provide the base class, but it seems thatMI and templates aren't available in PHP without nasty hacks. I'm notquite sure what to do at this point, I'll think it over, but if anyonewho is more familiar with the codebase has an idea, feel free to takea look yourself :)