| Total Complexity | 3 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 8 | class UserBarcodeExists implements Rule |
||
| 9 | { |
||
| 10 | protected $barcode; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Create a new rule instance. |
||
| 14 | * |
||
| 15 | * @param User $user |
||
| 16 | */ |
||
| 17 | public function __construct($barcode) |
||
| 18 | { |
||
| 19 | $this->barcode = $barcode; |
||
| 20 | } |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Determine if the validation rule passes. |
||
| 24 | * |
||
| 25 | * @param string $attribute |
||
| 26 | * @param mixed $value |
||
| 27 | * @return bool |
||
| 28 | */ |
||
| 29 | public function passes($attribute, $value) |
||
| 30 | { |
||
| 31 | return false; |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Get the validation error message. |
||
| 36 | * |
||
| 37 | * @return string |
||
| 38 | */ |
||
| 39 | public function message() |
||
| 41 | } |
||
| 42 | } |
||
| 43 |