Completed
Push — master ( 6064a2...7a17c2 )
by Luis Ramón
02:25
created

Periodicity::getDay()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
/*
3
  ÁTICA - Aplicación web para la gestión documental de centros educativos
4
5
  Copyright (C) 2015-2017: Luis Ramón López López
6
7
  This program is free software: you can redistribute it and/or modify
8
  it under the terms of the GNU Affero General Public License as published by
9
  the Free Software Foundation, either version 3 of the License, or
10
  (at your option) any later version.
11
12
  This program is distributed in the hope that it will be useful,
13
  but WITHOUT ANY WARRANTY; without even the implied warranty of
14
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15
  GNU Affero General Public License for more details.
16
17
  You should have received a copy of the GNU Affero General Public License
18
  along with this program.  If not, see [http://www.gnu.org/licenses/].
19
*/
20
21
namespace AppBundle\Entity;
22
23
use Doctrine\ORM\Mapping as ORM;
24
use Gedmo\Mapping\Annotation as Gedmo;
25
26
/**
27
 * @ORM\Entity()
28
 */
29
class Periodicity
30
{
31
    /**
32
     * @ORM\Id
33
     * @ORM\GeneratedValue(strategy="AUTO")
34
     * @ORM\Column(type="integer")
35
     * @var int
36
     */
37
    private $id;
38
39
    /**
40
     * @ORM\Column(type="string")
41
     * @var string
42
     */
43
    private $name;
44
45
    /**
46
     * @ORM\Column(type="text", nullable=true)
47
     * @var string
48
     */
49
    private $description;
50
51
    /**
52
     * @Gedmo\SortableGroup()
53
     * @ORM\ManyToOne(targetEntity="Organization")
54
     * @ORM\JoinColumn(nullable=false)
55
     * @var Organization
56
     */
57
    private $organization;
58
59
    /**
60
     * @Gedmo\SortablePosition()
61
     * @ORM\Column(type="integer")
62
     * @var int
63
     */
64
    private $position;
65
66
    /**
67
     * @ORM\Column(type="string")
68
     * @var string
69
     */
70
    private $day;
71
72
    /**
73
     * @ORM\Column(type="string")
74
     * @var string
75
     */
76
    private $month;
77
78
    /**
79
     * @ORM\Column(type="string")
80
     * @var string
81
     */
82
    private $year;
83
84
    /**
85
     * @ORM\Column(type="string")
86
     * @var string
87
     */
88
    private $dayOfWeek;
89
90
    /**
91
     * Get id
92
     *
93
     * @return integer
94
     */
95
    public function getId()
96
    {
97
        return $this->id;
98
    }
99
100
    /**
101
     * Set name
102
     *
103
     * @param string $name
104
     *
105
     * @return Periodicity
106
     */
107
    public function setName($name)
108
    {
109
        $this->name = $name;
110
111
        return $this;
112
    }
113
114
    /**
115
     * Get name
116
     *
117
     * @return string
118
     */
119
    public function getName()
120
    {
121
        return $this->name;
122
    }
123
124
    /**
125
     * Set description
126
     *
127
     * @param string $description
128
     *
129
     * @return Periodicity
130
     */
131
    public function setDescription($description)
132
    {
133
        $this->description = $description;
134
135
        return $this;
136
    }
137
138
    /**
139
     * Get description
140
     *
141
     * @return string
142
     */
143
    public function getDescription()
144
    {
145
        return $this->description;
146
    }
147
148
    /**
149
     * Set position
150
     *
151
     * @param integer $position
152
     *
153
     * @return Periodicity
154
     */
155
    public function setPosition($position)
156
    {
157
        $this->position = $position;
158
159
        return $this;
160
    }
161
162
    /**
163
     * Get position
164
     *
165
     * @return integer
166
     */
167
    public function getPosition()
168
    {
169
        return $this->position;
170
    }
171
172
    /**
173
     * Set day
174
     *
175
     * @param string $day
176
     *
177
     * @return Periodicity
178
     */
179
    public function setDay($day)
180
    {
181
        $this->day = $day;
182
183
        return $this;
184
    }
185
186
    /**
187
     * Get day
188
     *
189
     * @return string
190
     */
191
    public function getDay()
192
    {
193
        return $this->day;
194
    }
195
196
    /**
197
     * Set month
198
     *
199
     * @param string $month
200
     *
201
     * @return Periodicity
202
     */
203
    public function setMonth($month)
204
    {
205
        $this->month = $month;
206
207
        return $this;
208
    }
209
210
    /**
211
     * Get month
212
     *
213
     * @return string
214
     */
215
    public function getMonth()
216
    {
217
        return $this->month;
218
    }
219
220
    /**
221
     * Set year
222
     *
223
     * @param string $year
224
     *
225
     * @return Periodicity
226
     */
227
    public function setYear($year)
228
    {
229
        $this->year = $year;
230
231
        return $this;
232
    }
233
234
    /**
235
     * Get year
236
     *
237
     * @return string
238
     */
239
    public function getYear()
240
    {
241
        return $this->year;
242
    }
243
244
    /**
245
     * Set dayOfWeek
246
     *
247
     * @param string $dayOfWeek
248
     *
249
     * @return Periodicity
250
     */
251
    public function setDayOfWeek($dayOfWeek)
252
    {
253
        $this->dayOfWeek = $dayOfWeek;
254
255
        return $this;
256
    }
257
258
    /**
259
     * Get dayOfWeek
260
     *
261
     * @return string
262
     */
263
    public function getDayOfWeek()
264
    {
265
        return $this->dayOfWeek;
266
    }
267
268
    /**
269
     * Set organization
270
     *
271
     * @param Organization $organization
272
     *
273
     * @return Periodicity
274
     */
275
    public function setOrganization(Organization $organization)
276
    {
277
        $this->organization = $organization;
278
279
        return $this;
280
    }
281
282
    /**
283
     * Get organization
284
     *
285
     * @return Organization
286
     */
287
    public function getOrganization()
288
    {
289
        return $this->organization;
290
    }
291
}
292