| Total Complexity | 8 |
| Total Lines | 80 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 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 |
||
| 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 |
||
| 83 | } |
||
| 84 | |||
| 85 | public function getGradeBookCategory(): GradebookCategory |
||
| 86 | { |
||
| 87 | return $this->gradeBookCategory; |
||
| 88 | } |
||
| 89 | |||
| 90 | public function setGradeBookCategory(GradebookCategory $gradeBookCategory): self |
||
| 95 | } |
||
| 96 | } |
||
| 97 |