Rule.php 438 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace Illuminate\Contracts\Validation;
  3. /**
  4. * @deprecated see ValidationRule
  5. */
  6. interface Rule
  7. {
  8. /**
  9. * Determine if the validation rule passes.
  10. *
  11. * @param string $attribute
  12. * @param mixed $value
  13. * @return bool
  14. */
  15. public function passes($attribute, $value);
  16. /**
  17. * Get the validation error message.
  18. *
  19. * @return string|array
  20. */
  21. public function message();
  22. }