Completed
Push — master ( cc3037...815120 )
by Julito
29:55
created

CToolIntro::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/* For licensing terms, see /license.txt */
3
4
namespace Chamilo\CourseBundle\Entity;
5
6
use Doctrine\ORM\Mapping as ORM;
7
use APY\DataGridBundle\Grid\Mapping as GRID;
8
9
/**
10
 * CToolIntro
11
 *
12
 * @ORM\Table(
13
 *  name="c_tool_intro",
14
 *  indexes={
15
 *      @ORM\Index(name="course", columns={"c_id"})
16
 *  }
17
 * )
18
 * @ORM\Entity
19
 */
20
class CToolIntro
21
{
22
    /**
23
     * @var integer
24
     *
25
     * @ORM\Column(name="iid", type="integer")
26
     * @ORM\Id
27
     * @ORM\GeneratedValue
28
     */
29
    private $iid;
30
31
    /**
32
     * @var integer
33
     *
34
     * @ORM\Column(name="c_id", type="integer")
35
     */
36
    private $cId;
37
38
    /**
39
     * @var integer
40
     *
41
     * @ORM\Column(name="tool", type="string", nullable=false)
42
     */
43
    private $tool;
44
45
    /**
46
     * @var string
47
     * @GRID\Column(type="text")
48
     * @ORM\Column(name="intro_text", type="text", nullable=false)
49
     */
50
    private $introText;
51
52
    /**
53
     * @var integer
54
     *
55
     * @ORM\Column(name="session_id", type="integer")
56
     */
57
    private $sessionId;
58
59
    /**
60
     * @return int
61
     */
62
    public function getId()
63
    {
64
        return $this->iid;
65
    }
66
67
    /**
68
     * Set introText
69
     *
70
     * @param string $introText
71
     * @return CToolIntro
72
     */
73
    public function setIntroText($introText)
74
    {
75
        $this->introText = $introText;
76
77
        return $this;
78
    }
79
80
    /**
81
     * Get introText
82
     *
83
     * @return string
84
     */
85
    public function getIntroText()
86
    {
87
        return $this->introText;
88
    }
89
90
    /**
91
     * Set cId
92
     *
93
     * @param integer $cId
94
     * @return CToolIntro
95
     */
96
    public function setCId($cId)
97
    {
98
        $this->cId = $cId;
99
100
        return $this;
101
    }
102
103
    /**
104
     * Get cId
105
     *
106
     * @return integer
107
     */
108
    public function getCId()
109
    {
110
        return $this->cId;
111
    }
112
113
    /**
114
     * Set sessionId
115
     *
116
     * @param integer $sessionId
117
     * @return CToolIntro
118
     */
119
    public function setSessionId($sessionId)
120
    {
121
        $this->sessionId = $sessionId;
122
123
        return $this;
124
    }
125
126
    /**
127
     * Get sessionId
128
     *
129
     * @return integer
130
     */
131
    public function getSessionId()
132
    {
133
        return $this->sessionId;
134
    }
135
136
     /**
137
     * @return string
138
     */
139
    public function getTool()
140
    {
141
        return $this->tool;
142
    }
143
144
    /**
145
     * @param $tool
146
     * @return $this
147
     */
148
    public function setTool($tool)
149
    {
150
        $this->tool = $tool;
151
152
        return $this;
153
    }
154
}
155