src/Entity/Producto/PromocionalSlide.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Producto;
  3. use App\Entity\Catalogos\CategoriaProducto;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * PromocionalSlide
  7.  *
  8.  * @ORM\Table(name="producto.promocional_slide", indexes={@ORM\Index(name="IDX_55AB59F15F555AA", columns={"id_categoria_producto"})})
  9.  * @ORM\Entity
  10.  */
  11. class PromocionalSlide
  12. {
  13.     /**
  14.      * @var int
  15.      *
  16.      * @ORM\Column(name="id", type="integer", nullable=false)
  17.      * @ORM\Id
  18.      * @ORM\GeneratedValue(strategy="SEQUENCE")
  19.      * @ORM\SequenceGenerator(sequenceName="producto.promocional_slide_id_seq", allocationSize=1, initialValue=1)
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var string|null
  24.      *
  25.      * @ORM\Column(name="titulo", type="string", length=100, nullable=true)
  26.      */
  27.     private $titulo;
  28.     /**
  29.      * @var string|null
  30.      *
  31.      * @ORM\Column(name="descripcion", type="text", nullable=true)
  32.      */
  33.     private $descripcion;
  34.     /**
  35.      * @var bool|null
  36.      *
  37.      * @ORM\Column(name="activo", type="boolean", nullable=true)
  38.      */
  39.     private $activo;
  40.     /**
  41.      * @var \DateTime|null
  42.      *
  43.      * @ORM\Column(name="fecha_inicio", type="date", nullable=true)
  44.      */
  45.     private $fechaInicio;
  46.     /**
  47.      * @var \DateTime|null
  48.      *
  49.      * @ORM\Column(name="fecha_fin", type="date", nullable=true)
  50.      */
  51.     private $fechaFin;
  52.     /**
  53.      * @var bool|null
  54.      *
  55.      * @ORM\Column(name="encabezado", type="boolean", nullable=true)
  56.      */
  57.     private $encabezado;
  58.     /**
  59.      * @var int
  60.      *
  61.      * @ORM\Column(name="id_usuario_modificacion", type="integer", nullable=false)
  62.      */
  63.     private $idUsuarioModificacion;
  64.     /**
  65.      * @var \DateTime
  66.      *
  67.      * @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false)
  68.      */
  69.     private $fechaModificacion;
  70.     /**
  71.      * @var string
  72.      *
  73.      * @ORM\Column(name="ip_modificacion", type="string", length=50, nullable=false)
  74.      */
  75.     private $ipModificacion;
  76.     /**
  77.      * @var string|null
  78.      *
  79.      * @ORM\Column(name="imagen", type="string", nullable=true)
  80.      */
  81.     private $imagen;
  82.     /**
  83.      * @var \App\Entity\Catalogos\CategoriaProducto
  84.      *
  85.      * @ORM\ManyToOne(targetEntity="App\Entity\Catalogos\CategoriaProducto")
  86.      * @ORM\JoinColumns({
  87.      *   @ORM\JoinColumn(name="id_categoria_producto", referencedColumnName="id")
  88.      * })
  89.      */
  90.     private $idCategoriaProducto;
  91.     public function getId(): ?int
  92.     {
  93.         return $this->id;
  94.     }
  95.     public function getTitulo(): ?string
  96.     {
  97.         return $this->titulo;
  98.     }
  99.     public function setTitulo(?string $titulo): self
  100.     {
  101.         $this->titulo $titulo;
  102.         return $this;
  103.     }
  104.     public function getDescripcion(): ?string
  105.     {
  106.         return $this->descripcion;
  107.     }
  108.     public function setDescripcion(?string $descripcion): self
  109.     {
  110.         $this->descripcion $descripcion;
  111.         return $this;
  112.     }
  113.     public function getActivo(): ?bool
  114.     {
  115.         return $this->activo;
  116.     }
  117.     public function setActivo(?bool $activo): self
  118.     {
  119.         $this->activo $activo;
  120.         return $this;
  121.     }
  122.     public function getFechaInicio(): ?\DateTimeInterface
  123.     {
  124.         return $this->fechaInicio;
  125.     }
  126.     public function getFechaInicioString(): ?string
  127.     {
  128.         return $this->fechaInicio $this->fechaInicio->format('Y-m-d') : "";
  129.     }
  130.     public function setFechaInicio(?\DateTimeInterface $fechaInicio): self
  131.     {
  132.         $this->fechaInicio $fechaInicio;
  133.         return $this;
  134.     }
  135.     public function getFechaFin(): ?\DateTimeInterface
  136.     {
  137.         return $this->fechaFin;
  138.     }
  139.     public function getFechaFinString(): ?string
  140.     {
  141.         return $this->fechaFin $this->fechaFin->format('Y-m-d') : "";
  142.     }
  143.     public function setFechaFin(?\DateTimeInterface $fechaFin): self
  144.     {
  145.         $this->fechaFin $fechaFin;
  146.         return $this;
  147.     }
  148.     public function getEncabezado(): ?bool
  149.     {
  150.         return $this->encabezado;
  151.     }
  152.     public function setEncabezado(?bool $encabezado): self
  153.     {
  154.         $this->encabezado $encabezado;
  155.         return $this;
  156.     }
  157.     public function getIdUsuarioModificacion(): ?int
  158.     {
  159.         return $this->idUsuarioModificacion;
  160.     }
  161.     public function setIdUsuarioModificacion(int $idUsuarioModificacion): self
  162.     {
  163.         $this->idUsuarioModificacion $idUsuarioModificacion;
  164.         return $this;
  165.     }
  166.     public function getFechaModificacion(): ?\DateTimeInterface
  167.     {
  168.         return $this->fechaModificacion;
  169.     }
  170.     public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self
  171.     {
  172.         $this->fechaModificacion $fechaModificacion;
  173.         return $this;
  174.     }
  175.     public function getIpModificacion(): ?string
  176.     {
  177.         return $this->ipModificacion;
  178.     }
  179.     public function setIpModificacion(string $ipModificacion): self
  180.     {
  181.         $this->ipModificacion $ipModificacion;
  182.         return $this;
  183.     }
  184.     public function getImagen(): ?string
  185.     {
  186.         return $this->imagen;
  187.     }
  188.     public function setImagen(?string $imagen): self
  189.     {
  190.         $this->imagen $imagen;
  191.         return $this;
  192.     }
  193.     public function getIdCategoriaProducto(): ?CategoriaProducto
  194.     {
  195.         return $this->idCategoriaProducto;
  196.     }
  197.     public function setIdCategoriaProducto(?CategoriaProducto $idCategoriaProducto): self
  198.     {
  199.         $this->idCategoriaProducto $idCategoriaProducto;
  200.         return $this;
  201.     }
  202. }