Completed
Push — master ( 0dfc19...c58ed8 )
by Julito
10:02
created

Profile::getSkills()   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
 * Profile.
11
 *
12
 * @ORM\Table(name="skill_level_profile")
13
 * @ORM\Entity
14
 */
15
class Profile
16
{
17
    /**
18
     * @var int
19
     *
20
     * @ORM\Column(name="id", type="integer")
21
     * @ORM\Id
22
     * @ORM\GeneratedValue
23
     */
24
    protected $id;
25
26
    /**
27
     * @var string
28
     *
29
     * @ORM\Column(name="name", type="string", length=255, nullable=false)
30
     */
31
    protected $name;
32
33
    /**
34
     * @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\Skill", mappedBy="profile", cascade={"persist"})
35
     */
36
    protected $skills;
37
38
    /**
39
     * @ORM\OneToMany(targetEntity="Chamilo\CoreBundle\Entity\Level", mappedBy="profile", cascade={"persist"})
40
     * @ORM\OrderBy({"position" = "ASC"})
41
     */
42
    protected $levels;
43
44
    /**
45
     * @return string
46
     */
47
    public function __toString()
48
    {
49
        return (string) $this->getName();
50
    }
51
52
    /**
53
     * @return int
54
     */
55
    public function getId()
56
    {
57
        return $this->id;
58
    }
59
60
    /**
61
     * @param int $id
62
     *
63
     * @return Profile
64
     */
65
    public function setId($id)
66
    {
67
        $this->id = $id;
68
69
        return $this;
70
    }
71
72
    /**
73
     * @return string
74
     */
75
    public function getName()
76
    {
77
        return $this->name;
78
    }
79
80
    /**
81
     * @param string $name
82
     *
83
     * @return Profile
84
     */
85
    public function setName($name)
86
    {
87
        $this->name = $name;
88
89
        return $this;
90
    }
91
92
    public function getSkills()
93
    {
94
        return $this->skills;
95
    }
96
97
    /**
98
     * @return Profile
99
     */
100
    public function setSkills($skills)
101
    {
102
        $this->skills = $skills;
103
104
        return $this;
105
    }
106
107
    public function getLevels()
108
    {
109
        return $this->levels;
110
    }
111
112
    /**
113
     * @return Profile
114
     */
115
    public function setLevels($levels)
116
    {
117
        $this->levels = $levels;
118
119
        return $this;
120
    }
121
}
122