1 | <?php |
||
8 | final class Hash implements Rule |
||
9 | { |
||
10 | private $hash; |
||
11 | |||
12 | public function __construct(string $hash) |
||
16 | |||
17 | /** |
||
18 | * Determine if the validation rule passes. |
||
19 | * |
||
20 | * @param string $attribute |
||
21 | * @param mixed $plaintext |
||
22 | * @return bool |
||
23 | */ |
||
24 | public function passes($attribute, $plaintext) |
||
28 | |||
29 | /** |
||
30 | * Get the validation error message. |
||
31 | * |
||
32 | * @return string |
||
33 | */ |
||
34 | public function message() |
||
38 | } |
||
39 |