Passed
Push — master ( bfc3ee...241b61 )
by Julito
10:52
created

CStudentPublicationRelDocument::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
3
/* For licensing terms, see /license.txt */
4
5
namespace Chamilo\CourseBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * CStudentPublicationRelDocument.
11
 *
12
 * @ORM\Table(
13
 *  name="c_student_publication_rel_document",
14
 *  indexes={
15
 *      @ORM\Index(name="course", columns={"c_id"}),
16
 *      @ORM\Index(name="work", columns={"work_id"}),
17
 *      @ORM\Index(name="document", columns={"document_id"})
18
 *  }
19
 * )
20
 * @ORM\Entity
21
 */
22
class CStudentPublicationRelDocument
23
{
24
    /**
25
     * @var int
26
     *
27
     * @ORM\Column(name="iid", type="integer")
28
     * @ORM\Id
29
     * @ORM\GeneratedValue
30
     */
31
    protected $iid;
32
33
    /**
34
     * @var int
35
     *
36
     * @ORM\Column(name="c_id", type="integer")
37
     */
38
    protected $cId;
39
40
    /**
41
     * @var int
42
     *
43
     * @ORM\Column(name="work_id", type="integer", nullable=false)
44
     */
45
    protected $workId;
46
47
    /**
48
     * @var int
49
     *
50
     * @ORM\Column(name="document_id", type="integer", nullable=false)
51
     */
52
    protected $documentId;
53
54
    /**
55
     * Set workId.
56
     *
57
     * @param int $workId
58
     *
59
     * @return CStudentPublicationRelDocument
60
     */
61
    public function setWorkId($workId)
62
    {
63
        $this->workId = $workId;
64
65
        return $this;
66
    }
67
68
    /**
69
     * Get workId.
70
     *
71
     * @return int
72
     */
73
    public function getWorkId()
74
    {
75
        return $this->workId;
76
    }
77
78
    /**
79
     * Set documentId.
80
     *
81
     * @param int $documentId
82
     *
83
     * @return CStudentPublicationRelDocument
84
     */
85
    public function setDocumentId($documentId)
86
    {
87
        $this->documentId = $documentId;
88
89
        return $this;
90
    }
91
92
    /**
93
     * Get documentId.
94
     *
95
     * @return int
96
     */
97
    public function getDocumentId()
98
    {
99
        return $this->documentId;
100
    }
101
102
    /**
103
     * Set cId.
104
     *
105
     * @param int $cId
106
     *
107
     * @return CStudentPublicationRelDocument
108
     */
109
    public function setCId($cId)
110
    {
111
        $this->cId = $cId;
112
113
        return $this;
114
    }
115
116
    /**
117
     * Get cId.
118
     *
119
     * @return int
120
     */
121
    public function getCId()
122
    {
123
        return $this->cId;
124
    }
125
126
    /**
127
     * @return int
128
     */
129
    public function getIid()
130
    {
131
        return $this->iid;
132
    }
133
134
    /**
135
     * @param int $iid
136
     *
137
     * @return CStudentPublicationRelDocument
138
     */
139
    public function setIid($iid)
140
    {
141
        $this->iid = $iid;
142
143
        return $this;
144
    }
145
}
146