InvokableRule.php 443 B

123456789101112131415161718192021
  1. <?php
  2. namespace Illuminate\Contracts\Validation;
  3. use Closure;
  4. /**
  5. * @deprecated see ValidationRule
  6. */
  7. interface InvokableRule
  8. {
  9. /**
  10. * Run the validation rule.
  11. *
  12. * @param string $attribute
  13. * @param mixed $value
  14. * @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail
  15. * @return void
  16. */
  17. public function __invoke(string $attribute, mixed $value, Closure $fail);
  18. }