22 lines
443 B
PHP
22 lines
443 B
PHP
|
<?php
|
||
|
|
||
|
namespace Illuminate\Contracts\Validation;
|
||
|
|
||
|
use Closure;
|
||
|
|
||
|
/**
|
||
|
* @deprecated see ValidationRule
|
||
|
*/
|
||
|
interface InvokableRule
|
||
|
{
|
||
|
/**
|
||
|
* Run the validation rule.
|
||
|
*
|
||
|
* @param string $attribute
|
||
|
* @param mixed $value
|
||
|
* @param \Closure(string): \Illuminate\Translation\PotentiallyTranslatedString $fail
|
||
|
* @return void
|
||
|
*/
|
||
|
public function __invoke(string $attribute, mixed $value, Closure $fail);
|
||
|
}
|