1 | <?php declare(strict_types=1); |
||
30 | abstract class BaseValidator implements ValidatorInterface |
||
31 | { |
||
32 | /** |
||
33 | * @var bool |
||
34 | */ |
||
35 | private $areAggregatorsDirty = false; |
||
36 | |||
37 | /** |
||
38 | * @var CaptureAggregatorInterface |
||
39 | */ |
||
40 | private $captures; |
||
41 | |||
42 | /** |
||
43 | * @var ErrorAggregatorInterface |
||
44 | */ |
||
45 | private $errors; |
||
46 | |||
47 | /** |
||
48 | * Constructor. |
||
49 | */ |
||
50 | 7 | public function __construct() |
|
54 | |||
55 | /** |
||
56 | * @inheritdoc |
||
57 | */ |
||
58 | 2 | public function getCaptures(): array |
|
62 | |||
63 | /** |
||
64 | * @inheritdoc |
||
65 | */ |
||
66 | 2 | public function getErrors(): array |
|
70 | |||
71 | /** |
||
72 | * @return CaptureAggregatorInterface |
||
73 | */ |
||
74 | 7 | protected function getCaptureAggregator(): CaptureAggregatorInterface |
|
78 | |||
79 | /** |
||
80 | * @return ErrorAggregatorInterface |
||
81 | */ |
||
82 | 7 | protected function getErrorAggregator(): ErrorAggregatorInterface |
|
86 | |||
87 | /** |
||
88 | * @return CaptureAggregatorInterface |
||
89 | */ |
||
90 | 7 | protected function createCaptureAggregator(): CaptureAggregatorInterface |
|
94 | |||
95 | /** |
||
96 | * @return ErrorAggregatorInterface |
||
97 | */ |
||
98 | 7 | protected function createErrorAggregator(): ErrorAggregatorInterface |
|
102 | |||
103 | /** |
||
104 | * @return bool |
||
105 | */ |
||
106 | 7 | protected function areAggregatorsDirty(): bool |
|
110 | |||
111 | /** |
||
112 | * @return self |
||
113 | */ |
||
114 | 7 | protected function markAggregatorsAsDirty(): self |
|
120 | |||
121 | /** |
||
122 | * @return self |
||
123 | */ |
||
124 | 7 | protected function resetAggregators(): self |
|
133 | } |
||
134 |