chamilo /
chamilo-lms
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
| 1 | <?php |
||
| 2 | /* For licensing terms, see /license.txt */ |
||
| 3 | |||
| 4 | namespace Chamilo\CourseBundle\Entity; |
||
| 5 | |||
| 6 | use Doctrine\ORM\Mapping as ORM; |
||
| 7 | |||
| 8 | /** |
||
| 9 | * CRoleUser |
||
| 10 | * |
||
| 11 | * @ORM\Table( |
||
| 12 | * name="c_role_user", |
||
| 13 | * indexes={ |
||
| 14 | * @ORM\Index(name="course", columns={"c_id"}), |
||
| 15 | * @ORM\Index(name="user", columns={"user_id"}) |
||
| 16 | * } |
||
| 17 | * ) |
||
| 18 | * @ORM\Entity |
||
| 19 | */ |
||
| 20 | class CRoleUser |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var integer |
||
| 24 | * |
||
| 25 | * @ORM\Column(name="iid", type="integer") |
||
| 26 | * @ORM\Id |
||
| 27 | * @ORM\GeneratedValue |
||
| 28 | */ |
||
| 29 | private $iid; |
||
|
0 ignored issues
–
show
|
|||
| 30 | |||
| 31 | /** |
||
| 32 | * @var integer |
||
| 33 | * |
||
| 34 | * @ORM\Column(name="c_id", type="integer") |
||
| 35 | */ |
||
| 36 | private $cId; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @var string |
||
| 40 | * |
||
| 41 | * @ORM\Column(name="scope", type="string", length=20, nullable=false) |
||
| 42 | */ |
||
| 43 | private $scope; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @var integer |
||
| 47 | * |
||
| 48 | * @ORM\Column(name="role_id", type="integer") |
||
| 49 | */ |
||
| 50 | private $roleId; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @var integer |
||
| 54 | * |
||
| 55 | * @ORM\Column(name="user_id", type="integer") |
||
| 56 | */ |
||
| 57 | private $userId; |
||
| 58 | |||
| 59 | /** |
||
| 60 | * Set scope |
||
| 61 | * |
||
| 62 | * @param string $scope |
||
| 63 | * @return CRoleUser |
||
| 64 | */ |
||
| 65 | public function setScope($scope) |
||
| 66 | { |
||
| 67 | $this->scope = $scope; |
||
| 68 | |||
| 69 | return $this; |
||
| 70 | } |
||
| 71 | |||
| 72 | /** |
||
| 73 | * Get scope |
||
| 74 | * |
||
| 75 | * @return string |
||
| 76 | */ |
||
| 77 | public function getScope() |
||
| 78 | { |
||
| 79 | return $this->scope; |
||
| 80 | } |
||
| 81 | |||
| 82 | /** |
||
| 83 | * Set cId |
||
| 84 | * |
||
| 85 | * @param integer $cId |
||
| 86 | * @return CRoleUser |
||
| 87 | */ |
||
| 88 | public function setCId($cId) |
||
| 89 | { |
||
| 90 | $this->cId = $cId; |
||
| 91 | |||
| 92 | return $this; |
||
| 93 | } |
||
| 94 | |||
| 95 | /** |
||
| 96 | * Get cId |
||
| 97 | * |
||
| 98 | * @return integer |
||
| 99 | */ |
||
| 100 | public function getCId() |
||
| 101 | { |
||
| 102 | return $this->cId; |
||
| 103 | } |
||
| 104 | |||
| 105 | /** |
||
| 106 | * Set roleId |
||
| 107 | * |
||
| 108 | * @param integer $roleId |
||
| 109 | * @return CRoleUser |
||
| 110 | */ |
||
| 111 | public function setRoleId($roleId) |
||
| 112 | { |
||
| 113 | $this->roleId = $roleId; |
||
| 114 | |||
| 115 | return $this; |
||
| 116 | } |
||
| 117 | |||
| 118 | /** |
||
| 119 | * Get roleId |
||
| 120 | * |
||
| 121 | * @return integer |
||
| 122 | */ |
||
| 123 | public function getRoleId() |
||
| 124 | { |
||
| 125 | return $this->roleId; |
||
| 126 | } |
||
| 127 | |||
| 128 | /** |
||
| 129 | * Set userId |
||
| 130 | * |
||
| 131 | * @param integer $userId |
||
| 132 | * @return CRoleUser |
||
| 133 | */ |
||
| 134 | public function setUserId($userId) |
||
| 135 | { |
||
| 136 | $this->userId = $userId; |
||
| 137 | |||
| 138 | return $this; |
||
| 139 | } |
||
| 140 | |||
| 141 | /** |
||
| 142 | * Get userId |
||
| 143 | * |
||
| 144 | * @return integer |
||
| 145 | */ |
||
| 146 | public function getUserId() |
||
| 147 | { |
||
| 148 | return $this->userId; |
||
| 149 | } |
||
| 150 | } |
||
| 151 |
This check marks private properties in classes that are never used. Those properties can be removed.