| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | class Rule implements BaseRule |
||
| 16 | { |
||
| 17 | /** |
||
| 18 | * Determine if the validation rule passes. |
||
| 19 | * |
||
| 20 | * @param string $attribute |
||
| 21 | * @param mixed $value |
||
| 22 | * |
||
| 23 | * @return bool |
||
| 24 | */ |
||
| 25 | public function passes($attribute, $value) |
||
| 26 | { |
||
| 27 | return IdCard::passes($value); |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * Get the validation error message. |
||
| 32 | * |
||
| 33 | * @return string |
||
| 34 | */ |
||
| 35 | public function message() |
||
| 38 | } |
||
| 39 | } |
||
| 40 |