src/Entity/SettingsRol.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * SettingsRol
  6. */
  7. #[ORM\Entity]
  8. #[ORM\Table(name: 'settings_rol')]
  9. class SettingsRol
  10. {
  11. #[ORM\Id]
  12. #[ORM\GeneratedValue]
  13. #[ORM\Column(type: 'integer')]
  14. private ?int $id = null;
  15. #[ORM\Column(name: 'team', type: 'string', length: 255, nullable: true)]
  16. private ?string $team = null;
  17. #[ORM\Column(name: 'rol', type: 'string', length: 255, nullable: true)]
  18. private ?string $rol = null;
  19. #[ORM\Column(name: 'modulo_cliente', type: 'boolean', options: ['default' => 0])]
  20. private bool $mcliente = false;
  21. #[ORM\Column(name: 'modulo_proveedor', type: 'boolean', options: ['default' => 0])]
  22. private bool $mproveedor = false;
  23. #[ORM\Column(name: 'modulo_spaces', type: 'boolean', options: ['default' => 0])]
  24. private bool $mspaces = false;
  25. #[ORM\Column(name: 'modulo_admin', type: 'boolean', options: ['default' => 0])]
  26. private bool $madmin = false;
  27. #[ORM\Column(name: 'modulo_venues', type: 'boolean', options: ['default' => 0])]
  28. private bool $mvenues = false;
  29. #[ORM\Column(name: 'modulo_sage', type: 'boolean', options: ['default' => 0])]
  30. private bool $msage = false;
  31. #[ORM\Column(name: 'modulo_config', type: 'boolean', options: ['default' => 0])]
  32. private bool $msettings = false;
  33. #[ORM\Column(name: 'modulo_catering', type: 'boolean', options: ['default' => 0])]
  34. private bool $mcatering = false;
  35. #[ORM\Column(name: 'modulo_audiovisuales', type: 'boolean', options: ['default' => 0])]
  36. private bool $mav = false;
  37. #[ORM\Column(name: 'modulo_inventario', type: 'boolean', options: ['default' => 0])]
  38. private bool $minven = false;
  39. #[ORM\Column(name: 'modulo_legends', type: 'boolean', options: ['default' => 0])]
  40. private bool $mlegends = false;
  41. #[ORM\Column(name: 'modulo_rrhh', type: 'boolean', options: ['default' => 0])]
  42. private bool $mrrhh = false;
  43. // ----------------- Getters / Setters -----------------
  44. public function getId(): ?int
  45. {
  46. return $this->id;
  47. }
  48. public function getTeam(): ?string
  49. {
  50. return $this->team;
  51. }
  52. public function setTeam(?string $team): self
  53. {
  54. $this->team = $team;
  55. return $this;
  56. }
  57. public function getRol(): ?string
  58. {
  59. return $this->rol;
  60. }
  61. public function setRol(?string $rol): self
  62. {
  63. $this->rol = $rol;
  64. return $this;
  65. }
  66. public function getMcliente(): bool
  67. {
  68. return $this->mcliente;
  69. }
  70. public function setMcliente(bool $mcliente): self
  71. {
  72. $this->mcliente = $mcliente;
  73. return $this;
  74. }
  75. public function getMproveedor(): bool
  76. {
  77. return $this->mproveedor;
  78. }
  79. public function setMproveedor(bool $mproveedor): self
  80. {
  81. $this->mproveedor = $mproveedor;
  82. return $this;
  83. }
  84. public function getMspaces(): bool
  85. {
  86. return $this->mspaces;
  87. }
  88. public function setMspaces(bool $mspaces): self
  89. {
  90. $this->mspaces = $mspaces;
  91. return $this;
  92. }
  93. public function getMadmin(): bool
  94. {
  95. return $this->madmin;
  96. }
  97. public function setMadmin(bool $madmin): self
  98. {
  99. $this->madmin = $madmin;
  100. return $this;
  101. }
  102. public function getMvenues(): bool
  103. {
  104. return $this->mvenues;
  105. }
  106. public function setMvenues(bool $mvenues): self
  107. {
  108. $this->mvenues = $mvenues;
  109. return $this;
  110. }
  111. public function getMsage(): bool
  112. {
  113. return $this->msage;
  114. }
  115. public function setMsage(bool $msage): self
  116. {
  117. $this->msage = $msage;
  118. return $this;
  119. }
  120. public function getMsettings(): bool
  121. {
  122. return $this->msettings;
  123. }
  124. public function setMsettings(bool $msettings): self
  125. {
  126. $this->msettings = $msettings;
  127. return $this;
  128. }
  129. /** Catering: usa el campo mcatering real. */
  130. public function getMcatering(): bool
  131. {
  132. return $this->mcatering;
  133. }
  134. public function setMcatering(bool $mcatering): self
  135. {
  136. $this->mcatering = $mcatering;
  137. return $this;
  138. }
  139. /** Audiovisuales: usa el campo mav real. */
  140. public function getMav(): bool
  141. {
  142. return $this->mav;
  143. }
  144. public function setMav(bool $mav): self
  145. {
  146. $this->mav = $mav;
  147. return $this;
  148. }
  149. /** Audiovisuales: usa el campo mav real. */
  150. public function getMinven(): bool
  151. {
  152. return $this->minven;
  153. }
  154. public function setMinven(bool $minven): self
  155. {
  156. $this->minven = $minven;
  157. return $this;
  158. }
  159. /** Legends: usa el campo mav real. */
  160. public function getMlegends(): bool
  161. {
  162. return $this->mlegends;
  163. }
  164. public function setMlegends(bool $mlegends): self
  165. {
  166. $this->mlegends = $mlegends;
  167. return $this;
  168. }
  169. /** RRHH: usa el campo mav real. */
  170. public function getMrrhh(): bool
  171. {
  172. return $this->mrrhh;
  173. }
  174. public function setMrrhh(bool $mrrhh): self
  175. {
  176. $this->mrrhh = $mrrhh;
  177. return $this;
  178. }
  179. }