Conditions | 1 |
Paths | 1 |
Total Lines | 23 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 17 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
119 | 11 | public function initialize() |
|
120 | { |
||
121 | 11 | $this->belongsTo('user_id', 'Gewaer\Models\Users', 'id', ['alias' => 'user']); |
|
122 | |||
123 | 11 | $this->belongsTo( |
|
124 | 11 | 'companies_id', |
|
125 | 11 | 'Gewaer\Models\Companies', |
|
126 | 11 | 'id', |
|
127 | 11 | ['alias' => 'company'] |
|
128 | ); |
||
129 | |||
130 | 11 | $this->belongsTo( |
|
131 | 11 | 'apps_id', |
|
132 | 11 | 'Gewaer\Models\Apps', |
|
133 | 11 | 'id', |
|
134 | 11 | ['alias' => 'app'] |
|
135 | ); |
||
136 | |||
137 | 11 | $this->belongsTo( |
|
138 | 11 | 'apps_plans_id', |
|
139 | 11 | 'Gewaer\Models\AppsPlans', |
|
140 | 11 | 'id', |
|
141 | 11 | ['alias' => 'appPlan'] |
|
142 | ); |
||
164 |