Open Garethp opened 9 years ago
The main idea is to do not have special custom behavior coded directly into the project, probably a "custom plugin" here will be the best. See the idea expressed here https://github.com/goetas/xsd2php/issues/100#issuecomment-172182214
One of the modifications I made in my code, that I thought might be a good idea in general, was a way to have a base class for all items. So I put this at the top of
ClassGenerator::generate()
So basically if I'm putting all of my elements in the
\Some\Namespace\Types\
namespace, and the class\Some\Namespace\Type
exists, then all classes generated should extend from that in one way or another. I don't know if you want to incorporate this idea in some way, but I found it a nice thing for myself