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

SkillRelProfile::setSkillId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 5
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A SkillRelProfile::getId() 0 3 1
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
 * SkillRelProfile.
13
 *
14
 * @ORM\Table(name="skill_rel_profile")
15
 * @ORM\Entity
16
 */
17
class SkillRelProfile
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", cascade={"persist"})
28
     * @ORM\JoinColumn(name="skill_id", referencedColumnName="id", onDelete="CASCADE")
29
     */
30
    protected Skill $skill;
31
32
    /**
33
     * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\SkillProfile", cascade={"persist"})
34
     * @ORM\JoinColumn(name="profile_id", referencedColumnName="id", onDelete="CASCADE")
35
     */
36
    protected SkillProfile $profile;
37
38
    /**
39
     * Get id.
40
     *
41
     * @return int
42
     */
43
    public function getId()
44
    {
45
        return $this->id;
46
    }
47
48
    /**
49
     * @return Skill
50
     */
51
    public function getSkill(): Skill
52
    {
53
        return $this->skill;
54
    }
55
56
    public function setSkill(Skill $skill): self
57
    {
58
        $this->skill = $skill;
59
60
        return $this;
61
    }
62
63
    public function getProfile(): SkillProfile
64
    {
65
        return $this->profile;
66
    }
67
68
    public function setProfile(SkillProfile $profile): self
69
    {
70
        $this->profile = $profile;
71
72
        return $this;
73
    }
74
75
76
77
}
78