| Total Complexity | 5 | 
| Total Lines | 36 | 
| Duplicated Lines | 0 % | 
| Coverage | 0% | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 11 | class UniqueApplicantSkillRule implements Rule  | 
            ||
| 12 | { | 
            ||
| 13 | |||
| 14 | protected $applicant;  | 
            ||
| 15 | protected $skill_declaration_id;  | 
            ||
| 16 | |||
| 17 | /**  | 
            ||
| 18 | * Create a new rule instance.  | 
            ||
| 19 | *  | 
            ||
| 20 | * @param App\Models\Applicant $user  | 
            ||
| 21 | * @return void  | 
            ||
| 22 | */  | 
            ||
| 23 | public function __construct(Applicant $applicant, $skill_declaration_id = null)  | 
            ||
| 27 | }  | 
            ||
| 28 | |||
| 29 | /**  | 
            ||
| 30 | * This check passes if this applicant has no previous declaration for this skill,  | 
            ||
| 31 | * or if they are updating a previously existing declaration  | 
            ||
| 32 | * @param [type] $attribute [description]  | 
            ||
| 33 | * @param [type] $value [description]  | 
            ||
| 34 | * @return [type] [description]  | 
            ||
| 35 | */  | 
            ||
| 36 | public function passes($attribute, $value)  | 
            ||
| 42 | }  | 
            ||
| 43 | |||
| 44 | public function message()  | 
            ||
| 49 |