Test Failed
Pull Request — master (#70)
by Rafael
06:01
created

Notifications::initialize()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
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