WsdlToPhp / PackageGenerator

Generates a PHP SDK based on a WSDL, simple and powerful, WSDL to PHP
https://providr.io
MIT License
426 stars 73 forks source link

Export validation rule methods from generated classes? #175

Open mikaelcom opened 5 years ago

mikaelcom commented 5 years ago

Two generated validation methods (union, list and array rules) have been added to the generated classes:

Wouldn't it be better to extract them from the geenerated classes to the PackageBase project into a limited number of generic validation methods?

This way, it would be easier to implement new validation rules without having to update the generated classes nor the generator's validation rules.