Total Complexity | 2 |
Total Lines | 106 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
15 | class EmailTemplatesVariables extends AbstractModel |
||
16 | { |
||
17 | /** |
||
18 | * |
||
19 | * @var integer |
||
20 | */ |
||
21 | public $id; |
||
22 | |||
23 | /** |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | public $companies_id; |
||
28 | |||
29 | /** |
||
30 | * |
||
31 | * @var integer |
||
32 | */ |
||
33 | public $apps_id; |
||
34 | |||
35 | /** |
||
36 | * |
||
37 | * @var integer |
||
38 | */ |
||
39 | public $system_modules_id; |
||
40 | |||
41 | /** |
||
42 | * |
||
43 | * @var string |
||
44 | */ |
||
45 | public $users_id; |
||
46 | |||
47 | /** |
||
48 | * |
||
49 | * @var string |
||
50 | */ |
||
51 | public $name; |
||
52 | |||
53 | /** |
||
54 | * |
||
55 | * @var integer |
||
56 | */ |
||
57 | public $value; |
||
58 | |||
59 | /** |
||
60 | * |
||
61 | * @var integer |
||
62 | */ |
||
63 | public $is_deleted; |
||
64 | |||
65 | /** |
||
66 | * |
||
67 | * @var string |
||
68 | */ |
||
69 | public $created_at; |
||
70 | |||
71 | /** |
||
72 | * |
||
73 | * @var string |
||
74 | */ |
||
75 | public $updated_at; |
||
76 | |||
77 | /** |
||
78 | * Initialize method for model. |
||
79 | */ |
||
80 | 2 | public function initialize() |
|
81 | { |
||
82 | 2 | $this->belongsTo( |
|
83 | 2 | 'companies_id', |
|
84 | 2 | 'Gewaer\Models\Companies', |
|
85 | 2 | 'id', |
|
86 | 2 | ['alias' => 'company'] |
|
87 | ); |
||
88 | |||
89 | 2 | $this->belongsTo( |
|
90 | 2 | 'apps_id', |
|
91 | 2 | 'Gewaer\Models\Apps', |
|
92 | 2 | 'id', |
|
93 | 2 | ['alias' => 'app'] |
|
94 | ); |
||
95 | |||
96 | 2 | $this->belongsTo( |
|
97 | 2 | 'users_id', |
|
98 | 2 | 'Gewaer\Models\Users', |
|
99 | 2 | 'id', |
|
100 | 2 | ['alias' => 'user'] |
|
101 | ); |
||
102 | |||
103 | 2 | $this->belongsTo( |
|
104 | 2 | 'system_modules_id', |
|
105 | 2 | 'Gewaer\Models\SystemModules', |
|
106 | 2 | 'id', |
|
107 | 2 | ['alias' => 'system-modules'] |
|
108 | ); |
||
109 | |||
110 | 2 | $this->setSource('email_templates_variables'); |
|
111 | 2 | } |
|
112 | |||
113 | /** |
||
114 | * Returns table name mapped in the model. |
||
115 | * |
||
116 | * @return string |
||
117 | */ |
||
118 | 2 | public function getSource(): string |
|
121 | } |
||
122 | } |
||
123 |