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