Sanitizer.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Give\Vendors\StellarWP\Validation\Contracts; |
| 6 | |
| 7 | /** |
| 8 | * Intended to be used as part of a Validation Rule to sanitize data after it is validated. |
| 9 | * |
| 10 | * @since 1.0.0 |
| 11 | */ |
| 12 | interface Sanitizer |
| 13 | { |
| 14 | /** |
| 15 | * @since 1.0.0 |
| 16 | * |
| 17 | * @param mixed $value |
| 18 | * |
| 19 | * @return mixed |
| 20 | */ |
| 21 | public function sanitize($value); |
| 22 | } |
| 23 |