Passed
Push — master ( abf2c9...7e3711 )
by Julito
10:33
created

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