Test Failed
Pull Request — master (#70)
by Rafael
05:34
created

Notifications   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 98
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 17
dl 0
loc 98
ccs 0
cts 7
cp 0
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSource() 0 3 1
A initialize() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Gewaer\Models;
5
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_module_id;
51
52
    /**
53
     *
54
     * @var integer
55
     */
56
    public $notification_type_id;
57
58
    /**
59
     *
60
     * @var integer
61
     */
62
    public $entity_id;
63
64
    /**
65
     *
66
     * @var string
67
     */
68
    public $content;
69
70
    /**
71
     *
72
     * @var integer
73
     */
74
    public $is_deleted;
75
76
    /**
77
     *
78
     * @var string
79
     */
80
    public $created_at;
81
82
    /**
83
     *
84
     * @var string
85
     */
86
    public $updated_at;
87
88
    /**
89
     * Initialize method for model.
90
     */
91
    public function initialize()
92
    {
93
        $this->setSource('notifications');
94
    }
95
96
    /**
97
     * Returns table name mapped in the model.
98
     *
99
     * @return string
100
     */
101
    public function getSource(): string
102
    {
103
        return 'notifications';
104
    }
105
}
106