Total Complexity | 2 |
Total Lines | 43 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
9 | class EntityDataValidatorFactory |
||
10 | { |
||
11 | /** |
||
12 | * The public static method that is called to load the validator meta data |
||
13 | * |
||
14 | * @see https://symfony.com/doc/current/validation.html |
||
15 | * |
||
16 | * @see https://symfony.com/doc/current/components/validator/resources.html#the-staticmethodloader |
||
17 | * |
||
18 | */ |
||
19 | public const METHOD_LOAD_VALIDATOR_META_DATA = 'loadValidatorMetadata'; |
||
20 | |||
21 | /** |
||
22 | * @var DoctrineCache |
||
23 | */ |
||
24 | protected $doctrineCache; |
||
25 | |||
26 | /** |
||
27 | * ValidatorFactory constructor. |
||
28 | * |
||
29 | * You need to specify the cache driver implementation at the DI level |
||
30 | * |
||
31 | * @param DoctrineCache $doctrineCache |
||
32 | */ |
||
33 | public function __construct(DoctrineCache $doctrineCache) |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Build an EntityDataValidatorInterface |
||
40 | * |
||
41 | * @return EntityDataValidatorInterface |
||
42 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
43 | */ |
||
44 | public function buildEntityDataValidator(): EntityDataValidatorInterface |
||
54 |