Like the input validation, you can set the validation for the class as well using setValidation() while defining the class properties.
Like the input validation, you can set the validation for the class as well using setValidation() while defining the class properties.