src/Entity/Cookies.php line 16

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Symfony\Component\Validator\Constraints as Assert;
  5. use Symfony\Component\Validator\Context\ExecutionContext;
  6. use Symfony\Bridge\Doctrine\Validator\Constraints as DoctrineAssert;
  7. /**
  8.  * Cookies
  9.  *
  10.  * @ORM\Entity
  11.  * @ORM\Table(name="cookies")
  12.  */
  13. class Cookies
  14. {
  15.      /**
  16.      * @var integer
  17.      *
  18.      * @ORM\Column(name="id", type="integer")
  19.      * @ORM\Id
  20.      * @ORM\GeneratedValue(strategy="AUTO")
  21.      */
  22.     protected $id;
  23.     
  24.     /**
  25.      * @var string
  26.      *
  27.      * @ORM\Column(name="nombre", type="string", nullable=true)
  28.      */
  29.     private $nombre;
  30.     
  31.      /**
  32.      * @var string
  33.      *
  34.      * @ORM\Column(name="posicion", type="string", nullable=true)
  35.      */
  36.     protected $posicion;
  37.     
  38.      /**
  39.      * @var string
  40.      *
  41.      * @ORM\Column(name="tipo_cookies", type="string", nullable=true)
  42.      */
  43.     protected $tipo_cookies;
  44.     
  45.      /**
  46.      * @var string
  47.      *
  48.      * @ORM\Column(name="codigo", type="text", nullable=true)
  49.      */
  50.     protected $codigo;    
  51.     
  52.     /**
  53.      * @var bool
  54.      *
  55.      * @ORM\Column(name="activo", type="boolean")
  56.      */
  57.     protected $activo;
  58.     
  59.     public function __toString()
  60.     {
  61.         return $this->getNombre();
  62.     }
  63.     
  64.     /**
  65.      * Get slug
  66.      *
  67.      * @return string 
  68.      */
  69.     public function getSlug()
  70.     {
  71.         return $this->nombre;
  72.     }
  73.     
  74.     public function getId()
  75.     {
  76.         return $this->id;
  77.     }
  78.     
  79.     public function setNombre($nombre)
  80.     {
  81.         $this->nombre $nombre;
  82.     
  83.         return $this;
  84.     }
  85.     
  86.     public function getNombre()
  87.     {
  88.         return $this->nombre;
  89.     }
  90.     
  91.     
  92.     public function setPosicion($posicion)
  93.     {
  94.         $this->posicion $posicion;
  95.     
  96.         return $this;
  97.     }
  98.     
  99.     public function getPosicion()
  100.     {
  101.         return $this->posicion;
  102.     }
  103.     
  104.     public function setTipoCookies($tipo_cookies)
  105.     {
  106.         $this->tipo_cookies $tipo_cookies;
  107.     
  108.         return $this;
  109.     }
  110.     
  111.     public function getTipoCookies()
  112.     {
  113.         return $this->tipo_cookies;
  114.     }
  115.     
  116.     public function setCodigo($codigo)
  117.     {
  118.         $this->codigo $codigo;
  119.     
  120.         return $this;
  121.     }
  122.     
  123.     public function getCodigo()
  124.     {
  125.         return $this->codigo;
  126.     }
  127.     
  128.     public function setActivo($activo)
  129.     {
  130.         $this->activo $activo;
  131.     
  132.         return $this;
  133.     }
  134.     
  135.     public function getActivo()
  136.     {
  137.         return $this->activo;
  138.     }
  139. }
  140.