EntityCRolePermissions.php 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  1. <?php
  2. use Doctrine\ORM\Mapping as ORM;
  3. /**
  4. * EntityCRolePermissions
  5. *
  6. * @Table(name="c_role_permissions")
  7. * @Entity
  8. */
  9. class EntityCRolePermissions
  10. {
  11. /**
  12. * @var integer
  13. *
  14. * @Column(name="id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  15. * @Id
  16. * @GeneratedValue(strategy="NONE")
  17. */
  18. private $id;
  19. /**
  20. * @var integer
  21. *
  22. * @Column(name="c_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  23. * @Id
  24. * @GeneratedValue(strategy="NONE")
  25. */
  26. private $cId;
  27. /**
  28. * @var integer
  29. *
  30. * @Column(name="role_id", type="integer", precision=0, scale=0, nullable=false, unique=false)
  31. * @Id
  32. * @GeneratedValue(strategy="NONE")
  33. */
  34. private $roleId;
  35. /**
  36. * @var string
  37. *
  38. * @Column(name="tool", type="string", length=250, precision=0, scale=0, nullable=false, unique=false)
  39. * @Id
  40. * @GeneratedValue(strategy="NONE")
  41. */
  42. private $tool;
  43. /**
  44. * @var string
  45. *
  46. * @Column(name="action", type="string", length=50, precision=0, scale=0, nullable=false, unique=false)
  47. * @Id
  48. * @GeneratedValue(strategy="NONE")
  49. */
  50. private $action;
  51. /**
  52. * @var boolean
  53. *
  54. * @Column(name="default_perm", type="boolean", precision=0, scale=0, nullable=false, unique=false)
  55. */
  56. private $defaultPerm;
  57. /**
  58. * Set id
  59. *
  60. * @param integer $id
  61. * @return EntityCRolePermissions
  62. */
  63. public function setId($id)
  64. {
  65. $this->id = $id;
  66. return $this;
  67. }
  68. /**
  69. * Get id
  70. *
  71. * @return integer
  72. */
  73. public function getId()
  74. {
  75. return $this->id;
  76. }
  77. /**
  78. * Set cId
  79. *
  80. * @param integer $cId
  81. * @return EntityCRolePermissions
  82. */
  83. public function setCId($cId)
  84. {
  85. $this->cId = $cId;
  86. return $this;
  87. }
  88. /**
  89. * Get cId
  90. *
  91. * @return integer
  92. */
  93. public function getCId()
  94. {
  95. return $this->cId;
  96. }
  97. /**
  98. * Set roleId
  99. *
  100. * @param integer $roleId
  101. * @return EntityCRolePermissions
  102. */
  103. public function setRoleId($roleId)
  104. {
  105. $this->roleId = $roleId;
  106. return $this;
  107. }
  108. /**
  109. * Get roleId
  110. *
  111. * @return integer
  112. */
  113. public function getRoleId()
  114. {
  115. return $this->roleId;
  116. }
  117. /**
  118. * Set tool
  119. *
  120. * @param string $tool
  121. * @return EntityCRolePermissions
  122. */
  123. public function setTool($tool)
  124. {
  125. $this->tool = $tool;
  126. return $this;
  127. }
  128. /**
  129. * Get tool
  130. *
  131. * @return string
  132. */
  133. public function getTool()
  134. {
  135. return $this->tool;
  136. }
  137. /**
  138. * Set action
  139. *
  140. * @param string $action
  141. * @return EntityCRolePermissions
  142. */
  143. public function setAction($action)
  144. {
  145. $this->action = $action;
  146. return $this;
  147. }
  148. /**
  149. * Get action
  150. *
  151. * @return string
  152. */
  153. public function getAction()
  154. {
  155. return $this->action;
  156. }
  157. /**
  158. * Set defaultPerm
  159. *
  160. * @param boolean $defaultPerm
  161. * @return EntityCRolePermissions
  162. */
  163. public function setDefaultPerm($defaultPerm)
  164. {
  165. $this->defaultPerm = $defaultPerm;
  166. return $this;
  167. }
  168. /**
  169. * Get defaultPerm
  170. *
  171. * @return boolean
  172. */
  173. public function getDefaultPerm()
  174. {
  175. return $this->defaultPerm;
  176. }
  177. }