Test Setup Failed
Push — master ( 705975...2515cc )
by Julito
57:18
created

ScheduledAnnouncement::__toString()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 4
rs 10
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CoreBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
8
/**
9
 * ScheduledAnnouncement
10
 *
11
 * @ORM\Table(name="scheduled_announcements")
12
 * @ORM\Entity
13
 */
14
class ScheduledAnnouncement
15
{
16
    /**
17
     * @var integer
18
     *
19
     * @ORM\Column(name="id", type="integer", nullable=false, unique=false)
20
     * @ORM\Id
21
     * @ORM\GeneratedValue()
22
     */
23
    private $id;
24
25
    /**
26
     * @var string
27
     *
28
     * @ORM\Column(name="subject", type="string", length=255, nullable=false, unique=false)
29
     */
30
    private $subject;
31
32
    /**
33
     * @var string
34
     *
35
     * @ORM\Column(name="message", type="text", unique=false)
36
     */
37
    private $message;
38
39
    /**
40
     * @var \DateTime
41
     *
42
     * @ORM\Column(name="date", type="datetime", nullable=true)
43
     */
44
    private $date;
45
46
    /**
47
     * @var bool
48
     *
49
     * @ORM\Column(name="sent", type="boolean")
50
     */
51
    private $sent;
52
53
    /**
54
     * @var int
55
     *
56
     * @ORM\Column(name="session_id", type="integer", nullable=false)
57
     */
58
    private $sessionId;
59
60
    /**
61
     * @var int
62
     *
63
     * @ORM\Column(name="c_id", type="integer", nullable=true)
64
     */
65
    private $cId;
66
67
    /**
68
     * Constructor
69
     */
70
    public function __construct()
71
    {
72
    }
73
74
    /**
75
     * @return int
76
     */
77
    public function getId(): int
78
    {
79
        return $this->id;
80
    }
81
82
    /**
83
     * @param int $id
84
     * @return ScheduledAnnouncement
85
     */
86
    public function setId(int $id): ScheduledAnnouncement
87
    {
88
        $this->id = $id;
89
90
        return $this;
91
    }
92
93
    /**
94
     * @return string
95
     */
96
    public function getSubject(): string
97
    {
98
        return $this->subject;
99
    }
100
101
    /**
102
     * @param string $subject
103
     * @return ScheduledAnnouncement
104
     */
105
    public function setSubject(string $subject): ScheduledAnnouncement
106
    {
107
        $this->subject = $subject;
108
109
        return $this;
110
    }
111
112
    /**
113
     * @return string
114
     */
115
    public function getMessage(): string
116
    {
117
        return $this->message;
118
    }
119
120
    /**
121
     * @param string $message
122
     * @return ScheduledAnnouncement
123
     */
124
    public function setMessage(string $message): ScheduledAnnouncement
125
    {
126
        $this->message = $message;
127
128
        return $this;
129
    }
130
131
    /**
132
     * @return \DateTime
133
     */
134
    public function getDate(): \DateTime
135
    {
136
        return $this->date;
137
    }
138
139
    /**
140
     * @param \DateTime $date
141
     * @return ScheduledAnnouncement
142
     */
143
    public function setDate(\DateTime $date): ScheduledAnnouncement
144
    {
145
        $this->date = $date;
146
147
        return $this;
148
    }
149
150
    /**
151
     * @return bool
152
     */
153
    public function isSent(): bool
154
    {
155
        return $this->sent;
156
    }
157
158
    /**
159
     * @param bool $sent
160
     * @return ScheduledAnnouncement
161
     */
162
    public function setSent(bool $sent): ScheduledAnnouncement
163
    {
164
        $this->sent = $sent;
165
166
        return $this;
167
    }
168
169
    /**
170
     * @return int
171
     */
172
    public function getSessionId(): int
173
    {
174
        return $this->sessionId;
175
    }
176
177
    /**
178
     * @param int $sessionId
179
     * @return ScheduledAnnouncement
180
     */
181
    public function setSessionId(int $sessionId): ScheduledAnnouncement
182
    {
183
        $this->sessionId = $sessionId;
184
185
        return $this;
186
    }
187
188
    /**
189
     * @return int
190
     */
191
    public function getCId(): int
192
    {
193
        return $this->cId;
194
    }
195
196
    /**
197
     * @param int $cId
198
     * @return ScheduledAnnouncement
199
     */
200
    public function setCId(int $cId): ScheduledAnnouncement
201
    {
202
        $this->cId = $cId;
203
204
        return $this;
205
    }
206
}
207