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 @@ -453,8 +453,8 @@ of the form fields::
453453Constraint Targets
454454------------------
455455
456- Constraints can be applied to a class property (e.g. ``name ``), a public
457- getter method (e.g. ``getFullName() ``) or an entire class. Property constraints
456+ Constraints can be applied to a class property (e.g. ``name ``),
457+ a getter method (e.g. ``getFullName() ``) or an entire class. Property constraints
458458are the most common and easy to use. Getter constraints allow you to specify
459459more complex validation rules. Finally, class constraints are intended
460460for scenarios where you want to validate a class as a whole.
@@ -555,7 +555,7 @@ Getters
555555~~~~~~~
556556
557557Constraints can also be applied to the return value of a method. Symfony
558- allows you to add a constraint to any public method whose name starts with
558+ allows you to add a constraint to any private, protected or public method whose name starts with
559559"get", "is" or "has". In this guide, these types of methods are referred to
560560as "getters".
561561
You can’t perform that action at this time.
0 commit comments