Passed
Push — master ( f8ac77...23ebd1 )
by Julito
08:53
created

SkillRelGradebook::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
declare(strict_types=1);
4
5
/* For licensing terms, see /license.txt */
6
7
namespace Chamilo\CoreBundle\Entity;
8
9
use Doctrine\ORM\Mapping as ORM;
10
11
/**
12
 * @ORM\Table(name="skill_rel_gradebook")
13
 * @ORM\Entity
14
 */
15
class SkillRelGradebook
16
{
17
    /**
18
     * @ORM\Column(name="id", type="integer")
19
     * @ORM\Id
20
     * @ORM\GeneratedValue
21
     */
22
    protected int $id;
23
24
    /**
25
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\Skill", inversedBy="gradeBookCategories")
26
     * @ORM\JoinColumn(name="skill_id", referencedColumnName="id", onDelete="CASCADE")
27
     */
28
    protected Skill $skill;
29
30
    /**
31
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\GradebookCategory", inversedBy="skills")
32
     * @ORM\JoinColumn(name="gradebook_id", referencedColumnName="id", onDelete="CASCADE")
33
     */
34
    protected GradebookCategory $gradeBookCategory;
35
36
    /**
37
     * @ORM\Column(name="type", type="string", length=10, nullable=false)
38
     */
39
    protected string $type;
40
41
    public function __construct()
42
    {
43
        $this->type = '';
44
    }
45
46
    public function setType(string $type): self
47
    {
48
        $this->type = $type;
49
50
        return $this;
51
    }
52
53
    /**
54
     * Get type.
55
     *
56
     * @return string
57
     */
58
    public function getType()
59
    {
60
        return $this->type;
61
    }
62
63
    /**
64
     * Get id.
65
     *
66
     * @return int
67
     */
68
    public function getId()
69
    {
70
        return $this->id;
71
    }
72
73
    public function getSkill(): Skill
74
    {
75
        return $this->skill;
76
    }
77
78
    public function setSkill(Skill $skill): self
79
    {
80
        $this->skill = $skill;
81
82
        return $this;
83
    }
84
85
    public function getGradeBookCategory(): GradebookCategory
86
    {
87
        return $this->gradeBookCategory;
88
    }
89
90
    public function setGradeBookCategory(GradebookCategory $gradeBookCategory): self
91
    {
92
        $this->gradeBookCategory = $gradeBookCategory;
93
94
        return $this;
95
    }
96
}
97