Conditions | 1 |
Paths | 1 |
Total Lines | 32 |
Code Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Tests | 23 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php |
||
72 | 85 | public function initialize() |
|
73 | { |
||
74 | 85 | parent::initialize(); |
|
75 | |||
76 | 85 | $this->setSource('apps'); |
|
77 | |||
78 | 85 | $this->hasOne( |
|
79 | 85 | 'default_apps_plan_id', |
|
80 | 85 | 'Gewaer\Models\AppsPlans', |
|
81 | 85 | 'id', |
|
82 | 85 | ['alias' => 'plan'] |
|
83 | ); |
||
84 | |||
85 | 85 | $this->hasMany( |
|
86 | 85 | 'id', |
|
87 | 85 | 'Gewaer\Models\AppsPlans', |
|
88 | 85 | 'apps_id', |
|
89 | 85 | ['alias' => 'plans'] |
|
90 | ); |
||
91 | |||
92 | 85 | $this->hasMany( |
|
93 | 85 | 'id', |
|
94 | 85 | 'Gewaer\Models\UserWebhooks', |
|
95 | 85 | 'apps_id', |
|
96 | 85 | ['alias' => 'user-webhooks'] |
|
97 | ); |
||
98 | |||
99 | 85 | $this->hasMany( |
|
100 | 85 | 'id', |
|
101 | 85 | 'Gewaer\Models\AppsSettings', |
|
102 | 85 | 'apps_id', |
|
103 | 85 | ['alias' => 'settings'] |
|
104 | ); |
||
144 |