diff options
| author | Asko Nomm <asko@bien.ee> | 2022-02-22 21:32:37 +0100 |
|---|---|---|
| committer | Asko Nomm <asko@bien.ee> | 2022-02-22 21:32:37 +0100 |
| commit | b0fd14cd71d60c1b9926aff10fe9e8eeebe1285c (patch) | |
| tree | ff5f1689ffa87a84d8c7487d8a64c885ce7b592e /src/Validators/Validator.php | |
| parent | 4256c45b6b9c96400b8f372b289be1127495ac56 (diff) | |
Lots of documentation and basic tests
Diffstat (limited to 'src/Validators/Validator.php')
| -rw-r--r-- | src/Validators/Validator.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/Validators/Validator.php b/src/Validators/Validator.php new file mode 100644 index 0000000..11f2b01 --- /dev/null +++ b/src/Validators/Validator.php @@ -0,0 +1,9 @@ +<?php + +namespace Askonomm\Bouncer\Validators; + +interface Validator +{ + public static function validate(string $value, mixed $modifier = null): bool; + public static function composeError(string $field, mixed $modifier = null): string; +} |
