File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -511,9 +511,11 @@ For information on translating the constraint messages, see
511511Constraint Targets
512512------------------
513513
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.
514+ Constraints can be applied to a class property (e.g. ``name ``), a public
515+ getter method (e.g. ``getFullName ``) or an entire class. Property constraints
516+ 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.
517519
518520.. index ::
519521 single: Validation; Property constraints
You can’t perform that action at this time.
0 commit comments