@Sergei Shutov You missed the point.
validator
is typically stored as part of the individual data record to handle various types of checks within your class to provide the highest flexibility. Think of language or geographically related checking.
You can't bypass the challenge.
Neither by $classmetho() nor any code generator as this is all static code frozen and inflexible a runtime.
Creating a check routine by field or by record is not a realistic solution
- Log in to post comments
.png)
.png)
.png)
.png)
.png)
.png)
.png)
.png)