Conditions | 1 |
Paths | 1 |
Total Lines | 38 |
Code Lines | 26 |
Lines | 0 |
Ratio | 0 % |
Tests | 27 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
73 | 65 | public function initialize() |
|
74 | { |
||
75 | 65 | $this->hasMany( |
|
76 | 65 | 'id', |
|
77 | 65 | 'Gewaer\Models\EmailTemplatesVariables', |
|
78 | 65 | 'system_modules_id', |
|
79 | 65 | ['alias' => 'templateVariable'] |
|
80 | ); |
||
81 | |||
82 | 65 | $this->hasMany( |
|
83 | 65 | 'id', |
|
84 | 65 | 'Gewaer\Models\Webhooks', |
|
85 | 65 | 'system_modules_id', |
|
86 | 65 | ['alias' => 'webhook'] |
|
87 | ); |
||
88 | |||
89 | 65 | $this->belongsTo( |
|
90 | 65 | 'companies_id', |
|
91 | 65 | 'Gewaer\Models\Companies', |
|
92 | 65 | 'id', |
|
93 | 65 | ['alias' => 'company'] |
|
94 | ); |
||
95 | |||
96 | 65 | $this->belongsTo( |
|
97 | 65 | 'apps_id', |
|
98 | 65 | 'Gewaer\Models\Apps', |
|
99 | 65 | 'id', |
|
100 | 65 | ['alias' => 'app'] |
|
101 | ); |
||
102 | |||
103 | 65 | $this->belongsTo( |
|
104 | 65 | 'company_branches_id', |
|
105 | 65 | 'Gewaer\Models\CompanyBranches', |
|
106 | 65 | 'id', |
|
107 | 65 | ['alias' => 'companyBranch'] |
|
108 | ); |
||
109 | |||
110 | 65 | $this->setSource('user_company_apps_activities'); |
|
111 | 65 | } |
|
136 |