Completed
Push — master ( dff8d7...0614a5 )
by Julito
12:08
created

CResource::getId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
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
8
/**
9
 * CResource.
10
 *
11
 * @ORM\Table(
12
 *  name="c_resource",
13
 *  indexes={
14
 *      @ORM\Index(name="course", columns={"c_id"})
15
 *  }
16
 * )
17
 * @ORM\Entity
18
 */
19
class CResource
20
{
21
    /**
22
     * @var int
23
     *
24
     * @ORM\Column(name="id", type="integer")
25
     * @ORM\Id
26
     * @ORM\GeneratedValue
27
     */
28
    protected $iid;
29
30
    /**
31
     * @var int
32
     *
33
     * @ORM\Column(name="c_id", type="integer")
34
     */
35
    protected $cId;
36
37
    /**
38
     * @var string
39
     *
40
     * @ORM\Column(name="source_type", type="string", length=50, nullable=true)
41
     */
42
    protected $sourceType;
43
44
    /**
45
     * @var int
46
     *
47
     * @ORM\Column(name="source_id", type="integer", nullable=true)
48
     */
49
    protected $sourceId;
50
51
    /**
52
     * @var string
53
     *
54
     * @ORM\Column(name="resource_type", type="string", length=50, nullable=true)
55
     */
56
    protected $resourceType;
57
58
    /**
59
     * @var int
60
     *
61
     * @ORM\Column(name="resource_id", type="integer", nullable=true)
62
     */
63
    protected $resourceId;
64
65
    /**
66
     * Set sourceType.
67
     *
68
     * @param string $sourceType
69
     *
70
     * @return CResource
71
     */
72
    public function setSourceType($sourceType)
73
    {
74
        $this->sourceType = $sourceType;
75
76
        return $this;
77
    }
78
79
    /**
80
     * Get sourceType.
81
     *
82
     * @return string
83
     */
84
    public function getSourceType()
85
    {
86
        return $this->sourceType;
87
    }
88
89
    /**
90
     * Set sourceId.
91
     *
92
     * @param int $sourceId
93
     *
94
     * @return CResource
95
     */
96
    public function setSourceId($sourceId)
97
    {
98
        $this->sourceId = $sourceId;
99
100
        return $this;
101
    }
102
103
    /**
104
     * Get sourceId.
105
     *
106
     * @return int
107
     */
108
    public function getSourceId()
109
    {
110
        return $this->sourceId;
111
    }
112
113
    /**
114
     * Set resourceType.
115
     *
116
     * @param string $resourceType
117
     *
118
     * @return CResource
119
     */
120
    public function setResourceType($resourceType)
121
    {
122
        $this->resourceType = $resourceType;
123
124
        return $this;
125
    }
126
127
    /**
128
     * Get resourceType.
129
     *
130
     * @return string
131
     */
132
    public function getResourceType()
133
    {
134
        return $this->resourceType;
135
    }
136
137
    /**
138
     * Set resourceId.
139
     *
140
     * @param int $resourceId
141
     *
142
     * @return CResource
143
     */
144
    public function setResourceId($resourceId)
145
    {
146
        $this->resourceId = $resourceId;
147
148
        return $this;
149
    }
150
151
    /**
152
     * Get resourceId.
153
     *
154
     * @return int
155
     */
156
    public function getResourceId()
157
    {
158
        return $this->resourceId;
159
    }
160
161
    /**
162
     * Set cId.
163
     *
164
     * @param int $cId
165
     *
166
     * @return CResource
167
     */
168
    public function setCId($cId)
169
    {
170
        $this->cId = $cId;
171
172
        return $this;
173
    }
174
175
    /**
176
     * Get cId.
177
     *
178
     * @return int
179
     */
180
    public function getCId()
181
    {
182
        return $this->cId;
183
    }
184
}
185