<?php/** * Created by PhpStorm. * User: lisavandaele * Date: 30/01/15 * Time: 12:53 */namespace Notaris\AdminBundle\Entity;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Symfony\Component\Validator\Constraints as Assert;/** * @ORM\Entity(repositoryClass="ModuleRepository") * @ORM\Table(name="module") */class Module { /** * @var integer * * @ORM\Column(name="id", type="integer") * @ORM\Id * @ORM\GeneratedValue(strategy="AUTO") */ private $id; /** * @var string * * @ORM\Column(name="name", type="string", length=255) */ private $name; /** * @var string * * @ORM\Column(name="type", type="string", length=255) */ private $type; /** * @var integer * * @ORM\Column(type="integer") */ private $position = 0; /** * @ORM\Column(type="boolean", name="is_active") * @Assert\Type("boolean") */ private $isActive; /** * @var array * * @ORM\Column(type="json_array", name="settings") */ private $settings = []; /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set name * * @param string $name * @return Module */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set type * * @param string $type * @return Module */ public function setType($type) { $this->type = $type; return $this; } /** * Get type * * @return string */ public function getType() { return $this->type; } /** * Set position * * @param integer $position * @return Module */ public function setPosition($position) { $this->position = $position; return $this; } /** * Get position * * @return integer */ public function getPosition() { return $this->position; } /** * Set isActive * * @param boolean $isActive * @return Module */ public function setIsActive($isActive) { $this->isActive = $isActive; return $this; } /** * Get isActive * * @return boolean */ public function getIsActive() { return $this->isActive; } /** * @return mixed */ public function getSettings() { return $this->settings; } /** * @param mixed $settings */ public function setSettings($settings) { $this->settings = $settings; }}