In the documentation it lists examples for applying a class validation constraint to Annotations, XML and YAML but not for PHP.
Since the validation is not applied to a property, where do I add this class validation constraint to the whole class inside a Symfony form type?