Completed
Pull Request — master (#3464)
by Julito
14:18 queued 01:15
created

ClassUser::getUser()   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\CoreBundle\Entity;
6
7
use Doctrine\ORM\Mapping as ORM;
8
9
/**
10
 * ClassUser.
11
 *
12
 * @ORM\Table(name="class_user")
13
 * @ORM\Entity
14
 *
15
 * @deprecated  The class user class will be removed as it will not be used.
16
 */
17
class ClassUser
18
{
19
    /**
20
     * @var int
21
     *
22
     * @ORM\Column(name="class_id", type="integer")
23
     * @ORM\Id
24
     * @ORM\GeneratedValue(strategy="NONE")
25
     */
26
    protected $classId;
27
28
    /**
29
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User", inversedBy="classUser")
30
     * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE")
31
     */
32
    protected $user;
33
34
    /**
35
     * Get user.
36
     *
37
     */
38
    public function getUser(): User
39
    {
40
        return $this->user;
41
    }
42
43
    /**
44
     * Set user.
45
     *
46
     */
47
    public function setUser($user)
48
    {
49
        $this->user = $user;
50
51
        return $this;
52
    }
53
54
    /**
55
     * Set classId.
56
     *
57
     * @param int $classId
58
     *
59
     * @return ClassUser
60
     */
61
    public function setClassId($classId)
62
    {
63
        $this->classId = $classId;
64
65
        return $this;
66
    }
67
68
    /**
69
     * Get classId.
70
     *
71
     * @return int
72
     */
73
    public function getClassId()
74
    {
75
        return $this->classId;
76
    }
77
}
78