@@ -112,8 +112,9 @@ following:
112112
113113 .. tip ::
114114
115- Protected and private properties can also be validated, as well as "getter"
116- methods (see :ref: `validator-constraint-targets `).
115+ Symfony's validator uses PHP reflection, as well as *"getter" * methods, to
116+ get the value of any property, so they can be public, private or protected
117+ (see :ref: `validator-constraint-targets `).
117118
118119.. index ::
119120 single: Validation; Using the validator
@@ -327,7 +328,7 @@ literature genre mostly associated with the author, which can be set to either
327328
328329 // src/Entity/Author.php
329330 namespace App\Entity;
330-
331+
331332 // ...
332333 use Symfony\Component\Validator\Constraints as Assert;
333334
@@ -381,7 +382,7 @@ literature genre mostly associated with the author, which can be set to either
381382
382383 // src/Entity/Author.php
383384 namespace App\Entity;
384-
385+
385386 // ...
386387 use Symfony\Component\Validator\Constraints as Assert;
387388 use Symfony\Component\Validator\Mapping\ClassMetadata;
@@ -416,7 +417,7 @@ options can be specified in this way.
416417
417418 // src/Entity/Author.php
418419 namespace App\Entity;
419-
420+
420421 // ...
421422 use Symfony\Component\Validator\Constraints as Assert;
422423
@@ -464,7 +465,7 @@ options can be specified in this way.
464465
465466 // src/Entity/Author.php
466467 namespace App\Entity;
467-
468+
468469 // ...
469470 use Symfony\Component\Validator\Constraints as Assert;
470471 use Symfony\Component\Validator\Mapping\ClassMetadata;
@@ -585,7 +586,7 @@ class to have at least 3 characters.
585586
586587 // src/Entity/Author.php
587588 namespace App\Entity;
588-
589+
589590 // ...
590591 use Symfony\Component\Validator\Constraints as Assert;
591592 use Symfony\Component\Validator\Mapping\ClassMetadata;
@@ -627,7 +628,7 @@ this method must return ``true``:
627628
628629 // src/Entity/Author.php
629630 namespace App\Entity;
630-
631+
631632 // ...
632633 use Symfony\Component\Validator\Constraints as Assert;
633634
@@ -672,7 +673,7 @@ this method must return ``true``:
672673
673674 // src/Entity/Author.php
674675 namespace App\Entity;
675-
676+
676677 // ...
677678 use Symfony\Component\Validator\Constraints as Assert;
678679 use Symfony\Component\Validator\Mapping\ClassMetadata;
0 commit comments