Total Complexity | 2 |
Total Lines | 92 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 0 |
1 | <?php |
||
6 | class Notifications extends AbstractModel |
||
7 | { |
||
8 | /** |
||
9 | * Apps notication type |
||
10 | */ |
||
11 | const APPS = 1; |
||
12 | |||
13 | /** |
||
14 | * Users notification type |
||
15 | */ |
||
16 | const USERS = 2; |
||
17 | |||
18 | /** |
||
19 | * System notification type |
||
20 | */ |
||
21 | const SYSTEM = 3; |
||
22 | /** |
||
23 | * |
||
24 | * @var integer |
||
25 | */ |
||
26 | public $id; |
||
27 | |||
28 | /** |
||
29 | * |
||
30 | * @var integer |
||
31 | */ |
||
32 | public $users_id; |
||
33 | |||
34 | /** |
||
35 | * |
||
36 | * @var integer |
||
37 | */ |
||
38 | public $companies_id; |
||
39 | |||
40 | /** |
||
41 | * |
||
42 | * @var integer |
||
43 | */ |
||
44 | public $apps_id; |
||
45 | |||
46 | /** |
||
47 | * |
||
48 | * @var integer |
||
49 | */ |
||
50 | public $system_modules_id; |
||
51 | |||
52 | /** |
||
53 | * |
||
54 | * @var integer |
||
55 | */ |
||
56 | public $entity_id; |
||
57 | |||
58 | /** |
||
59 | * |
||
60 | * @var string |
||
61 | */ |
||
62 | public $content; |
||
63 | |||
64 | /** |
||
65 | * |
||
66 | * @var integer |
||
67 | */ |
||
68 | public $is_deleted; |
||
69 | |||
70 | /** |
||
71 | * |
||
72 | * @var string |
||
73 | */ |
||
74 | public $created_at; |
||
75 | |||
76 | /** |
||
77 | * |
||
78 | * @var string |
||
79 | */ |
||
80 | public $updated_at; |
||
81 | |||
82 | /** |
||
83 | * Initialize method for model. |
||
84 | */ |
||
85 | public function initialize() |
||
86 | { |
||
87 | $this->setSource('notifications'); |
||
88 | } |
||
89 | |||
90 | /** |
||
91 | * Returns table name mapped in the model. |
||
92 | * |
||
93 | * @return string |
||
94 | */ |
||
95 | public function getSource(): string |
||
98 | } |
||
99 | } |
||
100 |