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 @@ -519,8 +519,8 @@ of the form fields::
519519Constraint Targets
520520------------------
521521
522- Constraints can be applied to a class property (e.g. ``name ``), a public
523- getter method (e.g. ``getFullName() ``) or an entire class. Property constraints
522+ Constraints can be applied to a class property (e.g. ``name ``),
523+ a getter method (e.g. ``getFullName() ``) or an entire class. Property constraints
524524are the most common and easy to use. Getter constraints allow you to specify
525525more complex validation rules. Finally, class constraints are intended
526526for scenarios where you want to validate a class as a whole.
@@ -635,7 +635,7 @@ Getters
635635~~~~~~~
636636
637637Constraints can also be applied to the return value of a method. Symfony
638- allows you to add a constraint to any public method whose name starts with
638+ allows you to add a constraint to any private, protected or public method whose name starts with
639639"get", "is" or "has". In this guide, these types of methods are referred to
640640as "getters".
641641
You can’t perform that action at this time.
0 commit comments