| Total Complexity | 6 |
| Total Lines | 28 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class BetweenRule implements RuleInterface |
||
| 10 | { |
||
| 11 | |||
| 12 | /** |
||
| 13 | * {@inheritdoc} |
||
| 14 | */ |
||
| 15 | public function run($value, array $input, array $args): bool |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | public function errorMessage(): string |
||
| 27 | { |
||
| 28 | return 'Field `{field}` must be between `{$0}` and `{$1}``.'; |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | public function canSkip(): bool |
||
| 37 | } |
||
| 38 | } |