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