1 | <?php namespace Limoncello\Validation\Expressions; |
||
25 | class EachExpression extends BaseExpression |
||
26 | { |
||
27 | /** |
||
28 | * @var RuleInterface |
||
29 | */ |
||
30 | private $rule; |
||
31 | |||
32 | /** |
||
33 | * @param RuleInterface $rule |
||
34 | */ |
||
35 | 1 | public function __construct(RuleInterface $rule) |
|
40 | |||
41 | /** |
||
42 | * @inheritdoc |
||
43 | */ |
||
44 | 1 | public function validate($input) |
|
52 | |||
53 | /** |
||
54 | * @inheritdoc |
||
55 | */ |
||
56 | public function isStateless() |
||
60 | |||
61 | /** |
||
62 | * @inheritdoc |
||
63 | */ |
||
64 | 1 | public function onFinish(ErrorAggregatorInterface $aggregator) |
|
68 | |||
69 | /** |
||
70 | * @return RuleInterface |
||
71 | */ |
||
72 | 1 | protected function getRule() |
|
76 | } |
||
77 |