1 | <?php namespace Limoncello\Validation\Expressions; |
||
27 | abstract class IterateRules extends BaseExpression implements AutoNameRuleInterface |
||
28 | { |
||
29 | /** |
||
30 | * @var RuleInterface[] |
||
31 | */ |
||
32 | private $rules; |
||
33 | |||
34 | /** |
||
35 | * @var null|bool |
||
36 | */ |
||
37 | private $isStateless = null; |
||
38 | |||
39 | /** |
||
40 | * @var bool |
||
41 | */ |
||
42 | private $isAutoParamNames = true; |
||
43 | |||
44 | /** |
||
45 | * @param array $rules |
||
46 | */ |
||
47 | 13 | public function __construct(array $rules) |
|
51 | |||
52 | /** |
||
53 | * @inheritdoc |
||
54 | */ |
||
55 | 1 | public function enableAutoParameterNames() |
|
61 | |||
62 | /** |
||
63 | * @inheritdoc |
||
64 | */ |
||
65 | 1 | public function disableAutoParameterNames() |
|
71 | |||
72 | /** |
||
73 | * @inheritdoc |
||
74 | */ |
||
75 | 2 | public function isStateless() |
|
89 | |||
90 | /** |
||
91 | * @inheritdoc |
||
92 | */ |
||
93 | 13 | public function onFinish(ErrorAggregatorInterface $aggregator) |
|
101 | |||
102 | /** |
||
103 | * @inheritdoc |
||
104 | */ |
||
105 | 13 | public function setParameterName($parameterName) |
|
113 | |||
114 | /** |
||
115 | * @return RuleInterface[] |
||
116 | */ |
||
117 | 13 | protected function getRules() |
|
121 | |||
122 | /** |
||
123 | * @return bool |
||
124 | */ |
||
125 | 13 | protected function isAutoNames() |
|
129 | } |
||
130 |