File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -527,8 +527,8 @@ of the form fields::
527527Constraint Targets
528528------------------
529529
530- Constraints can be applied to a class property (e.g. ``name ``), a public
531- getter method (e.g. ``getFullName() ``) or an entire class. Property constraints
530+ Constraints can be applied to a class property (e.g. ``name ``),
531+ a getter method (e.g. ``getFullName() ``) or an entire class. Property constraints
532532are the most common and easy to use. Getter constraints allow you to specify
533533more complex validation rules. Finally, class constraints are intended
534534for scenarios where you want to validate a class as a whole.
@@ -643,7 +643,7 @@ Getters
643643~~~~~~~
644644
645645Constraints can also be applied to the return value of a method. Symfony
646- allows you to add a constraint to any public method whose name starts with
646+ allows you to add a constraint to any private, protected or public method whose name starts with
647647"get", "is" or "has". In this guide, these types of methods are referred to
648648as "getters".
649649
You can’t perform that action at this time.
0 commit comments