src/Entity/Module.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * Module
  6. *
  7. * @ORM\Table(name="modules")
  8. * @ORM\Entity(repositoryClass="App\Repository\ModuleRepository")
  9. */
  10. class Module {
  11. /**
  12. * @var integer
  13. *
  14. * @ORM\Column(name="id", type="integer")
  15. * @ORM\Id
  16. * @ORM\GeneratedValue(strategy="AUTO")
  17. */
  18. private $id;
  19. /**
  20. * @var string
  21. *
  22. * @ORM\Column(name="title", type="string", length=255)
  23. */
  24. private $title;
  25. /**
  26. * @var string
  27. *
  28. * @ORM\Column(name="description", type="string", length=255)
  29. */
  30. private $description;
  31. /**
  32. * @var string
  33. *
  34. * @ORM\Column(name="template", type="string", length=255)
  35. */
  36. private $template;
  37. /**
  38. * @var string
  39. *
  40. * @ORM\Column(name="template_dir", type="string", length=255, nullable=true)
  41. */
  42. private $templateDir;
  43. /**
  44. * @var string
  45. *
  46. * @ORM\Column(name="entity", type="string", length=30)
  47. */
  48. private $entity;
  49. /**
  50. * @var string
  51. *
  52. * @ORM\Column(name="route", type="string", length=50)
  53. */
  54. private $route;
  55. /**
  56. * @var boolean
  57. *
  58. * @ORM\Column(name="has_options", type="boolean", options={"default" = 0})
  59. */
  60. private $hasOptions;
  61. /**
  62. * @var boolean
  63. *
  64. * @ORM\Column(name="has_conditions", type="boolean", options={"default" = 0})
  65. */
  66. private $hasConditions;
  67. /**
  68. * @var boolean
  69. *
  70. * @ORM\Column(name="has_title", type="boolean", options={"default" = 0})
  71. */
  72. private $hasTitle;
  73. /**
  74. * @var defaults
  75. *
  76. * @ORM\Column(name="defaults", type="text", nullable=true)
  77. */
  78. private $defaults;
  79. /**
  80. * @ORM\Column(name="is_resizable", type="boolean", options={"default" = 0})
  81. */
  82. private $isResizable;
  83. /**
  84. * @var hookDisabled
  85. *
  86. * @ORM\Column(name="hook_disabled", type="text", length=255)
  87. */
  88. private $hookDisabled;
  89. /**
  90. * @var orderNum
  91. *
  92. * @ORM\Column(name="order_num", type="boolean", options={"default" = 0})
  93. */
  94. private $orderNum;
  95. /**
  96. * @var boolean
  97. * @ORM\Column(name="hooked", type="boolean")
  98. */
  99. private $hooked;
  100. /**
  101. * @var array
  102. * @ORM\OneToMany(targetEntity="ModuleHook", mappedBy="module", cascade={"persist"})
  103. */
  104. private $hooks = [];
  105. /**
  106. * @return the $hasOptions
  107. */
  108. public function getHasOptions() {
  109. return $this->hasOptions;
  110. }
  111. /**
  112. * @param boolean $hasOptions
  113. */
  114. public function setHasOptions($hasOptions) {
  115. $this->hasOptions = $hasOptions;
  116. }
  117. /**
  118. * Get id
  119. *
  120. * @return integer
  121. */
  122. public function getId() {
  123. return $this->id;
  124. }
  125. /**
  126. * Set title
  127. *
  128. * @param string $title
  129. * @return Module
  130. */
  131. public function setTitle($title) {
  132. $this->title = $title;
  133. return $this;
  134. }
  135. /**
  136. * Get title
  137. *
  138. * @return string
  139. */
  140. public function getTitle() {
  141. return $this->title;
  142. }
  143. /**
  144. * Set type
  145. *
  146. * @param string $description
  147. * @return Module
  148. */
  149. public function setDescription($description) {
  150. $this->description = $description;
  151. return $this;
  152. }
  153. /**
  154. * Get type
  155. *
  156. * @return string
  157. */
  158. public function getDescription() {
  159. return $this->description;
  160. }
  161. /**
  162. * Set template
  163. *
  164. * @param string $template
  165. * @return Module
  166. */
  167. public function setTemplate($template) {
  168. $this->template = $template;
  169. return $this;
  170. }
  171. /**
  172. * Get template
  173. *
  174. * @return string
  175. */
  176. public function getTemplate() {
  177. return $this->template;
  178. }
  179. /**
  180. * @return the $entity
  181. */
  182. public function getEntity() {
  183. return $this->entity;
  184. }
  185. /**
  186. * @return the $route
  187. */
  188. public function getRoute() {
  189. return $this->route;
  190. }
  191. /**
  192. * @param string $entity
  193. */
  194. public function setEntity($entity) {
  195. $this->entity = $entity;
  196. }
  197. /**
  198. * @param string $route
  199. */
  200. public function setRoute($route) {
  201. $this->route = $route;
  202. }
  203. /**
  204. * @return the $templateDir
  205. */
  206. public function getTemplateDir() {
  207. return $this->templateDir;
  208. }
  209. /**
  210. * @param string $templateDir
  211. */
  212. public function setTemplateDir($templateDir) {
  213. $this->templateDir = $templateDir;
  214. }
  215. /**
  216. * @return the $hasTitle
  217. */
  218. public function getHasTitle() {
  219. return $this->hasTitle;
  220. }
  221. /**
  222. * @param boolean $hasTitle
  223. */
  224. public function setHasTitle($hasTitle) {
  225. $this->hasTitle = $hasTitle;
  226. }
  227. /**
  228. * @return the $hookDisabled
  229. */
  230. public function getHookDisabled() {
  231. return $this->hookDisabled;
  232. }
  233. /**
  234. * @param \App\Entity\hookDisabled $hookDisabled
  235. */
  236. public function setHookDisabled($hookDisabled) {
  237. $this->hookDisabled = $hookDisabled;
  238. }
  239. /**
  240. * @return the $orderNum
  241. */
  242. public function getOrderNum() {
  243. return $this->orderNum;
  244. }
  245. /**
  246. * @param \App\Entity\orderNum $orderNum
  247. */
  248. public function setOrderNum($orderNum) {
  249. $this->orderNum = $orderNum;
  250. }
  251. /**
  252. * @return the $hasConditions
  253. */
  254. public function getHasConditions() {
  255. return $this->hasConditions;
  256. }
  257. /**
  258. * @param boolean $hasConditions
  259. */
  260. public function setHasConditions($hasConditions) {
  261. $this->hasConditions = $hasConditions;
  262. }
  263. public function getIsResizable() {
  264. return $this->isResizable;
  265. }
  266. public function setIsResizable($isResizable) {
  267. $this->isResizable = $isResizable;
  268. }
  269. }