Passed
Push — master ( cc68cc...50453a )
by Julito
09:11
created

CCalendarEventRepeat::setCalId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CourseBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * CCalendarEventRepeat.
11
 *
12
 * @ORM\Table(
13
 *  name="c_calendar_event_repeat",
14
 *  indexes={
15
 *  }
16
 * )
17
 * @ORM\Entity
18
 */
19
class CCalendarEventRepeat
20
{
21
    /**
22
     * @var int
23
     *
24
     * @ORM\Column(name="iid", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue
27
     */
28
    protected $iid;
29
30
    /**
31
     * @var CCalendarEvent
32
     *
33
     * @ORM\ManyToOne(targetEntity="Chamilo\CourseBundle\Entity\CCalendarEvent", inversedBy="repeatEvents")
34
     * @ORM\JoinColumn(name="cal_id", referencedColumnName="iid")
35
     */
36
    protected $event;
37
38
    /**
39
     * @var string
40
     *
41
     * @ORM\Column(name="cal_type", type="string", length=20, nullable=true)
42
     */
43
    protected $calType;
44
45
    /**
46
     * @var int
47
     *
48
     * @ORM\Column(name="cal_end", type="integer", nullable=true)
49
     */
50
    protected $calEnd;
51
52
    /**
53
     * @var int
54
     *
55
     * @ORM\Column(name="cal_frequency", type="integer", nullable=true)
56
     */
57
    protected $calFrequency;
58
59
    /**
60
     * @var string
61
     *
62
     * @ORM\Column(name="cal_days", type="string", length=7, nullable=true)
63
     */
64
    protected $calDays;
65
66
    /**
67
     * Set calType.
68
     *
69
     * @param string $calType
70
     *
71
     * @return CCalendarEventRepeat
72
     */
73
    public function setCalType($calType)
74
    {
75
        $this->calType = $calType;
76
77
        return $this;
78
    }
79
80
    /**
81
     * Get calType.
82
     *
83
     * @return string
84
     */
85
    public function getCalType()
86
    {
87
        return $this->calType;
88
    }
89
90
    /**
91
     * Set calEnd.
92
     *
93
     * @param int $calEnd
94
     *
95
     * @return CCalendarEventRepeat
96
     */
97
    public function setCalEnd($calEnd)
98
    {
99
        $this->calEnd = $calEnd;
100
101
        return $this;
102
    }
103
104
    /**
105
     * Get calEnd.
106
     *
107
     * @return int
108
     */
109
    public function getCalEnd()
110
    {
111
        return $this->calEnd;
112
    }
113
114
    /**
115
     * Set calFrequency.
116
     *
117
     * @param int $calFrequency
118
     *
119
     * @return CCalendarEventRepeat
120
     */
121
    public function setCalFrequency($calFrequency)
122
    {
123
        $this->calFrequency = $calFrequency;
124
125
        return $this;
126
    }
127
128
    /**
129
     * Get calFrequency.
130
     *
131
     * @return int
132
     */
133
    public function getCalFrequency()
134
    {
135
        return $this->calFrequency;
136
    }
137
138
    /**
139
     * Set calDays.
140
     *
141
     * @param string $calDays
142
     *
143
     * @return CCalendarEventRepeat
144
     */
145
    public function setCalDays($calDays)
146
    {
147
        $this->calDays = $calDays;
148
149
        return $this;
150
    }
151
152
    /**
153
     * Get calDays.
154
     *
155
     * @return string
156
     */
157
    public function getCalDays()
158
    {
159
        return $this->calDays;
160
    }
161
}
162