Total Complexity | 3 |
Total Lines | 34 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
10 | class Postcode implements Rule |
||
11 | { |
||
12 | protected $service; |
||
13 | |||
14 | /** |
||
15 | * Create a new rule instance. |
||
16 | * |
||
17 | * @return void |
||
18 | */ |
||
19 | 12 | public function __construct() |
|
22 | 12 | } |
|
23 | |||
24 | /** |
||
25 | * Determine if the validation rule passes. |
||
26 | * |
||
27 | * @param string $attribute |
||
28 | * @param mixed $value |
||
29 | * @return bool |
||
30 | */ |
||
31 | 6 | public function passes($attribute, $value) |
|
34 | } |
||
35 | |||
36 | /** |
||
37 | * Get the validation error message. |
||
38 | * |
||
39 | * @return string |
||
40 | */ |
||
41 | 3 | public function message() |
|
46 |