Total Complexity | 3 |
Total Lines | 104 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
8 | class UsersInvite extends AbstractModel |
||
9 | { |
||
10 | use SubscriptionPlanLimitTrait; |
||
11 | |||
12 | /** |
||
13 | * |
||
14 | * @var integer |
||
15 | */ |
||
16 | public $id; |
||
17 | |||
18 | /** |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | public $invite_hash; |
||
23 | |||
24 | /** |
||
25 | * |
||
26 | * @var integer |
||
27 | */ |
||
28 | public $companies_id; |
||
29 | |||
30 | /** |
||
31 | * |
||
32 | * @var integer |
||
33 | */ |
||
34 | public $role_id; |
||
35 | |||
36 | /** |
||
37 | * |
||
38 | * @var integer |
||
39 | */ |
||
40 | public $app_id; |
||
41 | |||
42 | /** |
||
43 | * |
||
44 | * @var string |
||
45 | */ |
||
46 | public $email; |
||
47 | |||
48 | /** |
||
49 | * |
||
50 | * @var integer |
||
51 | */ |
||
52 | public $is_deleted; |
||
53 | |||
54 | /** |
||
55 | * |
||
56 | * @var string |
||
57 | */ |
||
58 | public $created_at; |
||
59 | |||
60 | /** |
||
61 | * |
||
62 | * @var string |
||
63 | */ |
||
64 | public $updated_at; |
||
65 | |||
66 | /** |
||
67 | * Subscription plan key |
||
68 | */ |
||
69 | protected $subscriptionPlanLimitKey = 'users'; |
||
70 | |||
71 | /** |
||
72 | * Initialize method for model. |
||
73 | */ |
||
74 | public function initialize() |
||
90 | ); |
||
91 | } |
||
92 | |||
93 | /** |
||
94 | * Returns table name mapped in the model. |
||
95 | * |
||
96 | * @return string |
||
97 | */ |
||
98 | public function getSource(): string |
||
101 | } |
||
102 | |||
103 | /** |
||
104 | * What to do after the creation of a new users |
||
105 | * - Assign default role |
||
106 | * |
||
107 | * @return void |
||
108 | */ |
||
109 | public function afterCreate() |
||
114 |