We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent9860554 commit0efdda7Copy full SHA for 0efdda7
book/validation.rst
@@ -511,9 +511,11 @@ For information on translating the constraint messages, see
511
Constraint Targets
512
------------------
513
514
-Constraints can be applied to a class property (e.g. ``name``) or a public
515
-getter method (e.g. ``getFullName``). The first is the most common and easy
516
-to use, but the second allows you to specify more complex validation rules.
+Constraints can be applied to a class property (e.g. ``name``), a public
+getter method (e.g. ``getFullName``) or an entire class. Property constraints
+are the most common and easy to use. Getter constraints allow you to specify
517
+more complex validation rules. Finally, class constraints are intended
518
+for scenarios where you want to validate a class as a whole.
519
520
..index::
521
single: Validation; Property constraints