| Total Complexity | 5 |
| Total Lines | 98 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | class UserCourseCategory |
||
| 17 | { |
||
| 18 | use UserTrait; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @var int |
||
| 22 | * |
||
| 23 | * @ORM\Column(name="id", type="integer") |
||
| 24 | * @ORM\Id |
||
| 25 | * @ORM\GeneratedValue |
||
| 26 | */ |
||
| 27 | protected $id; |
||
| 28 | |||
| 29 | /** |
||
| 30 | * @var User |
||
| 31 | * |
||
| 32 | * @ORM\ManyToOne(targetEntity="Chamilo\CoreBundle\Entity\User", inversedBy="userCourseCategories") |
||
| 33 | * @ORM\JoinColumn(name="user_id", referencedColumnName="id", onDelete="CASCADE") |
||
| 34 | */ |
||
| 35 | protected $user; |
||
| 36 | |||
| 37 | /** |
||
| 38 | * @var string |
||
| 39 | * |
||
| 40 | * @ORM\Column(name="title", type="text", nullable=false) |
||
| 41 | */ |
||
| 42 | protected $title; |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @var int |
||
| 46 | * |
||
| 47 | * @ORM\Column(name="sort", type="integer", nullable=true) |
||
| 48 | */ |
||
| 49 | protected $sort; |
||
| 50 | |||
| 51 | /** |
||
| 52 | * @var bool |
||
| 53 | * |
||
| 54 | * @ORM\Column(name="collapsed", type="boolean", nullable=true) |
||
| 55 | */ |
||
| 56 | protected $isCollapsed; |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Set title. |
||
| 60 | * |
||
| 61 | * @param string $title |
||
| 62 | * |
||
| 63 | * @return UserCourseCategory |
||
| 64 | */ |
||
| 65 | public function setTitle($title) |
||
| 66 | { |
||
| 67 | $this->title = $title; |
||
| 68 | |||
| 69 | return $this; |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Get title. |
||
| 74 | * |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | public function getTitle() |
||
| 80 | } |
||
| 81 | |||
| 82 | /** |
||
| 83 | * Set sort. |
||
| 84 | * |
||
| 85 | * @param int $sort |
||
| 86 | * |
||
| 87 | * @return UserCourseCategory |
||
| 88 | */ |
||
| 89 | public function setSort($sort) |
||
| 90 | { |
||
| 91 | $this->sort = $sort; |
||
| 92 | |||
| 93 | return $this; |
||
| 94 | } |
||
| 95 | |||
| 96 | /** |
||
| 97 | * Get sort. |
||
| 98 | * |
||
| 99 | * @return int |
||
| 100 | */ |
||
| 101 | public function getSort() |
||
| 102 | { |
||
| 103 | return $this->sort; |
||
| 104 | } |
||
| 105 | |||
| 106 | /** |
||
| 107 | * Get id. |
||
| 108 | * |
||
| 109 | * @return int |
||
| 110 | */ |
||
| 111 | public function getId() |
||
| 114 | } |
||
| 115 | } |
||
| 116 |