| Total Complexity | 9 |
| Total Lines | 105 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 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) |
||
| 120 | } |
||
| 121 | } |
||
| 122 |