Group   A
last analyzed

Complexity

Total Complexity 14

Size/Duplication

Total Lines 170
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 14
lcom 0
cbo 0
dl 0
loc 170
rs 10
c 0
b 0
f 0

14 Methods

Rating   Name   Duplication   Size   Complexity  
A getId() 0 4 1
A setId() 0 6 1
A getTitle() 0 4 1
A setTitle() 0 6 1
A getFromName() 0 4 1
A setFromName() 0 6 1
A getSignature() 0 4 1
A setSignature() 0 6 1
A isActive() 0 4 1
A setActive() 0 6 1
A getCreatedAt() 0 4 1
A setCreatedAt() 0 6 1
A getUpdatedAt() 0 4 1
A setUpdatedAt() 0 6 1
1
<?php
2
namespace OmnideskBundle\Model;
3
4
/**
5
 * Class Group
6
 * @package OmnideskBundle\Model
7
 */
8
class Group
9
{
10
    /**
11
     * @var integer
12
     */
13
    private $id;
14
15
    /**
16
     * @var string
17
     */
18
    private $title;
19
20
    /**
21
     * @var string|null
22
     */
23
    private $fromName;
24
25
    /**
26
     * @var string|null
27
     */
28
    private $signature;
29
30
    /**
31
     * @var bool
32
     */
33
    private $active;
34
35
    /**
36
     * @var \DateTime
37
     */
38
    private $createdAt;
39
40
    /**
41
     * @var \DateTime
42
     */
43
    private $updatedAt;
44
45
    /**
46
     * @return int
47
     */
48
    public function getId()
49
    {
50
        return $this->id;
51
    }
52
53
    /**
54
     * @param int $id
55
     * @return $this
56
     */
57
    public function setId(int $id)
58
    {
59
        $this->id = $id;
60
61
        return $this;
62
    }
63
64
    /**
65
     * @return string
66
     */
67
    public function getTitle(): string
68
    {
69
        return $this->title;
70
    }
71
72
    /**
73
     * @param string $title
74
     * @return $this
75
     */
76
    public function setTitle(string $title)
77
    {
78
        $this->title = $title;
79
80
        return $this;
81
    }
82
83
    /**
84
     * @return null|string
85
     */
86
    public function getFromName()
87
    {
88
        return $this->fromName;
89
    }
90
91
    /**
92
     * @param null|string $fromName
93
     * @return $this
94
     */
95
    public function setFromName(string $fromName = null)
96
    {
97
        $this->fromName = $fromName;
98
99
        return $this;
100
    }
101
102
    /**
103
     * @return null|string
104
     */
105
    public function getSignature()
106
    {
107
        return $this->signature;
108
    }
109
110
    /**
111
     * @param null|string $signature
112
     * @return $this
113
     */
114
    public function setSignature(string $signature = null)
115
    {
116
        $this->signature = $signature;
117
118
        return $this;
119
    }
120
121
    /**
122
     * @return bool
123
     */
124
    public function isActive()
125
    {
126
        return $this->active;
127
    }
128
129
    /**
130
     * @param bool $active
131
     * @return $this
132
     */
133
    public function setActive(bool $active)
134
    {
135
        $this->active = $active;
136
137
        return $this;
138
    }
139
140
    /**
141
     * @return \DateTime
142
     */
143
    public function getCreatedAt()
144
    {
145
        return $this->createdAt;
146
    }
147
148
    /**
149
     * @param \DateTime $createdAt
150
     * @return $this
151
     */
152
    public function setCreatedAt(\DateTime $createdAt)
153
    {
154
        $this->createdAt = $createdAt;
155
156
        return $this;
157
    }
158
159
    /**
160
     * @return \DateTime
161
     */
162
    public function getUpdatedAt()
163
    {
164
        return $this->updatedAt;
165
    }
166
167
    /**
168
     * @param \DateTime $updatedAt
169
     * @return $this
170
     */
171
    public function setUpdatedAt(\DateTime $updatedAt)
172
    {
173
        $this->updatedAt = $updatedAt;
174
175
        return $this;
176
    }
177
}
178