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