Total Complexity | 5 |
Total Lines | 39 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | class ValidCreditCard implements Rule |
||
8 | { |
||
9 | /** |
||
10 | * Check if the credit card number is valid using the Luhn algorithm. |
||
11 | * |
||
12 | * @param string $attribute |
||
13 | * @param mixed $value |
||
14 | * @return bool |
||
15 | */ |
||
16 | public function passes($attribute, $value) |
||
36 | } |
||
37 | |||
38 | /** |
||
39 | * Get the validation error message. |
||
40 | * |
||
41 | * @return string |
||
42 | */ |
||
43 | public function message() |
||
48 |