<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Module
*
* @ORM\Table(name="modules")
* @ORM\Entity(repositoryClass="App\Repository\ModuleRepository")
*/
class Module {
/**
* @var integer
*
* @ORM\Column(name="id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="AUTO")
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="title", type="string", length=255)
*/
private $title;
/**
* @var string
*
* @ORM\Column(name="description", type="string", length=255)
*/
private $description;
/**
* @var string
*
* @ORM\Column(name="template", type="string", length=255)
*/
private $template;
/**
* @var string
*
* @ORM\Column(name="template_dir", type="string", length=255, nullable=true)
*/
private $templateDir;
/**
* @var string
*
* @ORM\Column(name="entity", type="string", length=30)
*/
private $entity;
/**
* @var string
*
* @ORM\Column(name="route", type="string", length=50)
*/
private $route;
/**
* @var boolean
*
* @ORM\Column(name="has_options", type="boolean", options={"default" = 0})
*/
private $hasOptions;
/**
* @var boolean
*
* @ORM\Column(name="has_conditions", type="boolean", options={"default" = 0})
*/
private $hasConditions;
/**
* @var boolean
*
* @ORM\Column(name="has_title", type="boolean", options={"default" = 0})
*/
private $hasTitle;
/**
* @var defaults
*
* @ORM\Column(name="defaults", type="text", nullable=true)
*/
private $defaults;
/**
* @ORM\Column(name="is_resizable", type="boolean", options={"default" = 0})
*/
private $isResizable;
/**
* @var hookDisabled
*
* @ORM\Column(name="hook_disabled", type="text", length=255)
*/
private $hookDisabled;
/**
* @var orderNum
*
* @ORM\Column(name="order_num", type="boolean", options={"default" = 0})
*/
private $orderNum;
/**
* @var boolean
* @ORM\Column(name="hooked", type="boolean")
*/
private $hooked;
/**
* @var array
* @ORM\OneToMany(targetEntity="ModuleHook", mappedBy="module", cascade={"persist"})
*/
private $hooks = [];
/**
* @return the $hasOptions
*/
public function getHasOptions() {
return $this->hasOptions;
}
/**
* @param boolean $hasOptions
*/
public function setHasOptions($hasOptions) {
$this->hasOptions = $hasOptions;
}
/**
* Get id
*
* @return integer
*/
public function getId() {
return $this->id;
}
/**
* Set title
*
* @param string $title
* @return Module
*/
public function setTitle($title) {
$this->title = $title;
return $this;
}
/**
* Get title
*
* @return string
*/
public function getTitle() {
return $this->title;
}
/**
* Set type
*
* @param string $description
* @return Module
*/
public function setDescription($description) {
$this->description = $description;
return $this;
}
/**
* Get type
*
* @return string
*/
public function getDescription() {
return $this->description;
}
/**
* Set template
*
* @param string $template
* @return Module
*/
public function setTemplate($template) {
$this->template = $template;
return $this;
}
/**
* Get template
*
* @return string
*/
public function getTemplate() {
return $this->template;
}
/**
* @return the $entity
*/
public function getEntity() {
return $this->entity;
}
/**
* @return the $route
*/
public function getRoute() {
return $this->route;
}
/**
* @param string $entity
*/
public function setEntity($entity) {
$this->entity = $entity;
}
/**
* @param string $route
*/
public function setRoute($route) {
$this->route = $route;
}
/**
* @return the $templateDir
*/
public function getTemplateDir() {
return $this->templateDir;
}
/**
* @param string $templateDir
*/
public function setTemplateDir($templateDir) {
$this->templateDir = $templateDir;
}
/**
* @return the $hasTitle
*/
public function getHasTitle() {
return $this->hasTitle;
}
/**
* @param boolean $hasTitle
*/
public function setHasTitle($hasTitle) {
$this->hasTitle = $hasTitle;
}
/**
* @return the $hookDisabled
*/
public function getHookDisabled() {
return $this->hookDisabled;
}
/**
* @param \App\Entity\hookDisabled $hookDisabled
*/
public function setHookDisabled($hookDisabled) {
$this->hookDisabled = $hookDisabled;
}
/**
* @return the $orderNum
*/
public function getOrderNum() {
return $this->orderNum;
}
/**
* @param \App\Entity\orderNum $orderNum
*/
public function setOrderNum($orderNum) {
$this->orderNum = $orderNum;
}
/**
* @return the $hasConditions
*/
public function getHasConditions() {
return $this->hasConditions;
}
/**
* @param boolean $hasConditions
*/
public function setHasConditions($hasConditions) {
$this->hasConditions = $hasConditions;
}
public function getIsResizable() {
return $this->isResizable;
}
public function setIsResizable($isResizable) {
$this->isResizable = $isResizable;
}
}