8000 [Validator] Improved phpdoc of RecursiveValidator · symfony/symfony@eeed509 · GitHub
[go: up one dir, main page]

Skip to content

Commit eeed509

Browse files
committed
[Validator] Improved phpdoc of RecursiveValidator
1 parent 274d4e6 commit eeed509

File tree

2 files changed

+21
-11
lines changed

2 files changed

+21
-11
lines changed

src/Symfony/Component/Validator/Validator/RecursiveContextualValidator.php

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
use Symfony\Component\Validator\Util\PropertyPath;
3535

3636
/**
37-
* Default implementation of {@link ContextualValidatorInterface}.
37+
* Recursive implementation of {@link ContextualValidatorInterface}.
3838
*
3939
* @since 2.5
4040
* @author Bernhard Schussek <bschussek@gmail.com>
@@ -51,15 +51,20 @@ class RecursiveContextualValidator implements ContextualValidatorInterface
5151
*/
5252
private $metadataFactory;
5353

54+
/**
55+
* @var ConstraintValidatorFactoryInterface
56+
*/
5457
private $validatorFactory;
5558

5659
/**
5760
* Creates a validator for the given context.
5861
*
59-
* @param ExecutionContextInterface $context The execution context
60-
* @param MetadataFactoryInterface $metadataFactory The factory for fetching
61-
* the metadata of validated
62-
* objects
62+
* @param ExecutionContextInterface $context The execution context
63+
* @param MetadataFactoryInterface $metadataFactory The factory for
64+
* fetching the metadata
65+
* of validated objects
66+
* @param ConstraintValidatorFactoryInterface $validatorFactory The factory for creating
67+
* constraint validators
6368
*/
6469
public function __construct(ExecutionContextInterface $context, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory)
6570
{

src/Symfony/Component/Validator/Validator/RecursiveValidator.php

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
use Symfony\Component\Validator\MetadataFactoryInterface;
1818

1919
/**
20-
* Default implementation of {@link ValidatorInterface}.
20+
* Recursive implementation of {@link ValidatorInterface}.
2121
*
2222
* @since 2.5
2323
* @author Bernhard Schussek <bschussek@gmail.com>
@@ -34,16 +34,21 @@ class RecursiveValidator implements ValidatorInterface
3434
*/
3535
protected $metadataFactory;
3636

37+
/**
38+
* @var ConstraintValidatorFactoryInterface
39+
*/
3740
protected $validatorFactory;
3841

3942
/**
4043
* Creates a new validator.
4144
*
42-
* @param ExecutionContextFactoryInterface $contextFactory The factory for
43-
* creating new contexts
44-
* @param MetadataFactoryInterface $metadataFactory The factory for
45-
* fetching the metadata
46-
* of validated objects
45+
* @param ExecutionContextFactoryInterface $contextFactory The factory for
46+
* creating new contexts
47+
* @param MetadataFactoryInterface $metadataFactory The factory for
48+
* fetching the metadata
49+
* of validated objects
50+
* @param ConstraintValidatorFactoryInterface $validatorFactory The factory for creating
51+
* constraint validators
4752
*/
4853
public function __construct(ExecutionContextFactoryInterface $contextFactory, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory)
4954
{

0 commit comments

Comments
 (0)
0