src/Entity/Cookies.php line 16
- <?php
- namespace App\Entity;
- use Doctrine\ORM\Mapping as ORM;
- use Symfony\Component\Validator\Constraints as Assert;
- use Symfony\Component\Validator\Context\ExecutionContext;
- use Symfony\Bridge\Doctrine\Validator\Constraints as DoctrineAssert;
- /**
- * Cookies
- *
- * @ORM\Entity
- * @ORM\Table(name="cookies")
- */
- class Cookies
- {
- /**
- * @var integer
- *
- * @ORM\Column(name="id", type="integer")
- * @ORM\Id
- * @ORM\GeneratedValue(strategy="AUTO")
- */
- protected $id;
- /**
- * @var string
- *
- * @ORM\Column(name="nombre", type="string", nullable=true)
- */
- private $nombre;
- /**
- * @var string
- *
- * @ORM\Column(name="posicion", type="string", nullable=true)
- */
- protected $posicion;
- /**
- * @var string
- *
- * @ORM\Column(name="tipo_cookies", type="string", nullable=true)
- */
- protected $tipo_cookies;
- /**
- * @var string
- *
- * @ORM\Column(name="codigo", type="text", nullable=true)
- */
- protected $codigo;
- /**
- * @var bool
- *
- * @ORM\Column(name="activo", type="boolean")
- */
- protected $activo;
- public function __toString()
- {
- return $this->getNombre();
- }
- /**
- * Get slug
- *
- * @return string
- */
- public function getSlug()
- {
- return $this->nombre;
- }
- public function getId()
- {
- return $this->id;
- }
- public function setNombre($nombre)
- {
- $this->nombre = $nombre;
- return $this;
- }
- public function getNombre()
- {
- return $this->nombre;
- }
- public function setPosicion($posicion)
- {
- $this->posicion = $posicion;
- return $this;
- }
- public function getPosicion()
- {
- return $this->posicion;
- }
- public function setTipoCookies($tipo_cookies)
- {
- $this->tipo_cookies = $tipo_cookies;
- return $this;
- }
- public function getTipoCookies()
- {
- return $this->tipo_cookies;
- }
- public function setCodigo($codigo)
- {
- $this->codigo = $codigo;
- return $this;
- }
- public function getCodigo()
- {
- return $this->codigo;
- }
- public function setActivo($activo)
- {
- $this->activo = $activo;
- return $this;
- }
- public function getActivo()
- {
- return $this->activo;
- }
- }