src/Notaris/AdminBundle/Entity/Module.php line 19

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: lisavandaele
  5.  * Date: 30/01/15
  6.  * Time: 12:53
  7.  */
  8. namespace Notaris\AdminBundle\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Gedmo\Mapping\Annotation as Gedmo;
  11. use Symfony\Component\Validator\Constraints as Assert;
  12. /**
  13.  * @ORM\Entity(repositoryClass="ModuleRepository")
  14.  * @ORM\Table(name="module")
  15.  */
  16. class Module {
  17.     /**
  18.      * @var integer
  19.      *
  20.      * @ORM\Column(name="id", type="integer")
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue(strategy="AUTO")
  23.      */
  24.     private $id;
  25.     /**
  26.      * @var string
  27.      *
  28.      * @ORM\Column(name="name", type="string", length=255)
  29.      */
  30.     private $name;
  31.     /**
  32.      * @var string
  33.      *
  34.      * @ORM\Column(name="type", type="string", length=255)
  35.      */
  36.     private $type;
  37.     /**
  38.      * @var integer
  39.      *
  40.      * @ORM\Column(type="integer")
  41.      */
  42.     private $position = 0;
  43.     /**
  44.      * @ORM\Column(type="boolean", name="is_active")
  45.      * @Assert\Type("boolean")
  46.      */
  47.     private $isActive;
  48.     /**
  49.      * @var array
  50.      *
  51.      * @ORM\Column(type="json_array", name="settings")
  52.      */
  53.     private $settings = [];
  54.     /**
  55.      * Get id
  56.      *
  57.      * @return integer
  58.      */
  59.     public function getId()
  60.     {
  61.         return $this->id;
  62.     }
  63.     /**
  64.      * Set name
  65.      *
  66.      * @param string $name
  67.      * @return Module
  68.      */
  69.     public function setName($name)
  70.     {
  71.         $this->name = $name;
  72.         return $this;
  73.     }
  74.     /**
  75.      * Get name
  76.      *
  77.      * @return string
  78.      */
  79.     public function getName()
  80.     {
  81.         return $this->name;
  82.     }
  83.     /**
  84.      * Set type
  85.      *
  86.      * @param string $type
  87.      * @return Module
  88.      */
  89.     public function setType($type)
  90.     {
  91.         $this->type = $type;
  92.         return $this;
  93.     }
  94.     /**
  95.      * Get type
  96.      *
  97.      * @return string
  98.      */
  99.     public function getType()
  100.     {
  101.         return $this->type;
  102.     }
  103.     /**
  104.      * Set position
  105.      *
  106.      * @param integer $position
  107.      * @return Module
  108.      */
  109.     public function setPosition($position)
  110.     {
  111.         $this->position = $position;
  112.         return $this;
  113.     }
  114.     /**
  115.      * Get position
  116.      *
  117.      * @return integer
  118.      */
  119.     public function getPosition()
  120.     {
  121.         return $this->position;
  122.     }
  123.     /**
  124.      * Set isActive
  125.      *
  126.      * @param boolean $isActive
  127.      * @return Module
  128.      */
  129.     public function setIsActive($isActive)
  130.     {
  131.         $this->isActive = $isActive;
  132.         return $this;
  133.     }
  134.     /**
  135.      * Get isActive
  136.      *
  137.      * @return boolean
  138.      */
  139.     public function getIsActive()
  140.     {
  141.         return $this->isActive;
  142.     }
  143.     /**
  144.      * @return mixed
  145.      */
  146.     public function getSettings()
  147.     {
  148.         return $this->settings;
  149.     }
  150.     /**
  151.      * @param mixed $settings
  152.      */
  153.     public function setSettings($settings)
  154.     {
  155.         $this->settings = $settings;
  156.     }
  157. }