src/Notaris/AdminBundle/Entity/ModuleLinks.php line 20

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="ModuleLinksRepository")
  14.  * @ORM\Table(name="module_links",uniqueConstraints={
  15.  *     @ORM\UniqueConstraint(name="unique_type", columns={"column_type","link_id","locale"})})
  16.  */
  17. class ModuleLinks {
  18.     /**
  19.      * @var integer
  20.      *
  21.      * @ORM\Column(name="id", type="integer")
  22.      * @ORM\Id
  23.      * @ORM\GeneratedValue(strategy="AUTO")
  24.      */
  25.     private $id;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="column_type", type="string", length=5)
  30.      */
  31.     private $columnType;
  32.     /**
  33.      * @var string
  34.      *
  35.      * @ORM\Column(name="position_column", type="string", length=2)
  36.      */
  37.     private $column;
  38.     /**
  39.      * @var integer
  40.      *
  41.      * @ORM\Column(type="integer")
  42.      */
  43.     private $position = 0;
  44.     /**
  45.      * @ORM\ManyToOne(targetEntity="Notaris\AdminBundle\Entity\FednotLinks")
  46.      * @ORM\JoinColumn(name="link_id", referencedColumnName="id", onDelete="CASCADE")
  47.      */
  48.     private $link;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @ORM\Column(name="locale", type="string", length=5)
  53.      */
  54.     private $locale;
  55.     /**
  56.      * Get id
  57.      *
  58.      * @return integer
  59.      */
  60.     public function getId()
  61.     {
  62.         return $this->id;
  63.     }
  64.     /**
  65.      * Set columnType
  66.      *
  67.      * @param string $columnType
  68.      *
  69.      * @return ModuleLinks
  70.      */
  71.     public function setColumnType($columnType)
  72.     {
  73.         $this->columnType = $columnType;
  74.         return $this;
  75.     }
  76.     /**
  77.      * Get columnType
  78.      *
  79.      * @return string
  80.      */
  81.     public function getColumnType()
  82.     {
  83.         return $this->columnType;
  84.     }
  85.     /**
  86.      * Set column
  87.      *
  88.      * @param string $column
  89.      *
  90.      * @return ModuleLinks
  91.      */
  92.     public function setColumn($column)
  93.     {
  94.         $this->column = $column;
  95.         return $this;
  96.     }
  97.     /**
  98.      * Get column
  99.      *
  100.      * @return string
  101.      */
  102.     public function getColumn()
  103.     {
  104.         return $this->column;
  105.     }
  106.     /**
  107.      * Set position
  108.      *
  109.      * @param integer $position
  110.      *
  111.      * @return ModuleLinks
  112.      */
  113.     public function setPosition($position)
  114.     {
  115.         $this->position = $position;
  116.         return $this;
  117.     }
  118.     /**
  119.      * Get position
  120.      *
  121.      * @return integer
  122.      */
  123.     public function getPosition()
  124.     {
  125.         return $this->position;
  126.     }
  127.     /**
  128.      * Set link
  129.      *
  130.      * @param \Notaris\AdminBundle\Entity\FednotLinks $link
  131.      *
  132.      * @return ModuleLinks
  133.      */
  134.     public function setLink(\Notaris\AdminBundle\Entity\FednotLinks $link = null)
  135.     {
  136.         $this->link = $link;
  137.         return $this;
  138.     }
  139.     /**
  140.      * Get link
  141.      *
  142.      * @return \Notaris\AdminBundle\Entity\FednotLinks
  143.      */
  144.     public function getLink()
  145.     {
  146.         return $this->link;
  147.     }
  148.     /**
  149.      * Set locale
  150.      *
  151.      * @param string $locale
  152.      *
  153.      * @return ModuleLinks
  154.      */
  155.     public function setLocale($locale)
  156.     {
  157.         $this->locale = $locale;
  158.         return $this;
  159.     }
  160.     /**
  161.      * Get locale
  162.      *
  163.      * @return string
  164.      */
  165.     public function getLocale()
  166.     {
  167.         return $this->locale;
  168.     }
  169. }