src/Entity/Documentos/ImagenesProducto.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Documentos;
  3. use App\Entity\Producto\Menu;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * ImagenesProducto
  7.  *
  8.  * @ORM\Table(name="documentos.imagenes_producto", indexes={@ORM\Index(name="IDX_D7A61992F6252691", columns={"id_menu"}), @ORM\Index(name="IDX_D7A61992738363B6", columns={"id_carga_documento"})})
  9.  * @ORM\Entity
  10.  */
  11. class ImagenesProducto
  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="documentos.imagenes_producto_id_seq", allocationSize=1, initialValue=1)
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var bool
  24.      *
  25.      * @ORM\Column(name="principal", type="boolean", nullable=false)
  26.      */
  27.     private $principal;
  28.     /**
  29.      * @var bool
  30.      *
  31.      * @ORM\Column(name="portada_menu", type="boolean", nullable=false)
  32.      */
  33.     private $portadaMenu;
  34.     /**
  35.      * @var int
  36.      *
  37.      * @ORM\Column(name="id_usuario_modificacion", type="integer", nullable=false)
  38.      */
  39.     private $idUsuarioModificacion;
  40.     /**
  41.      * @var \DateTime
  42.      *
  43.      * @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false)
  44.      */
  45.     private $fechaModificacion;
  46.     /**
  47.      * @var string
  48.      *
  49.      * @ORM\Column(name="ip_modificacion", type="string", length=50, nullable=false)
  50.      */
  51.     private $ipModificacion;
  52.     /**
  53.      * @var \App\Entity\Producto\Menu
  54.      *
  55.      * @ORM\ManyToOne(targetEntity="App\Entity\Producto\Menu")
  56.      * @ORM\JoinColumns({
  57.      *   @ORM\JoinColumn(name="id_menu", referencedColumnName="id")
  58.      * })
  59.      */
  60.     private $idMenu;
  61.     /**
  62.      * @var \CargaDocumento
  63.      *
  64.      * @ORM\ManyToOne(targetEntity="CargaDocumento")
  65.      * @ORM\JoinColumns({
  66.      *   @ORM\JoinColumn(name="id_carga_documento", referencedColumnName="id")
  67.      * })
  68.      */
  69.     private $idCargaDocumento;
  70.     public function getId(): ?int
  71.     {
  72.         return $this->id;
  73.     }
  74.     public function getPrincipal(): ?bool
  75.     {
  76.         return $this->principal;
  77.     }
  78.     public function setPrincipal(bool $principal): self
  79.     {
  80.         $this->principal $principal;
  81.         return $this;
  82.     }
  83.     public function getPortadaMenu(): ?bool
  84.     {
  85.         return $this->portadaMenu;
  86.     }
  87.     public function setPortadaMenu(bool $portadaMenu): self
  88.     {
  89.         $this->portadaMenu $portadaMenu;
  90.         return $this;
  91.     }
  92.     public function getIdUsuarioModificacion(): ?int
  93.     {
  94.         return $this->idUsuarioModificacion;
  95.     }
  96.     public function setIdUsuarioModificacion(int $idUsuarioModificacion): self
  97.     {
  98.         $this->idUsuarioModificacion $idUsuarioModificacion;
  99.         return $this;
  100.     }
  101.     public function getFechaModificacion(): ?\DateTimeInterface
  102.     {
  103.         return $this->fechaModificacion;
  104.     }
  105.     public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self
  106.     {
  107.         $this->fechaModificacion $fechaModificacion;
  108.         return $this;
  109.     }
  110.     public function getIpModificacion(): ?string
  111.     {
  112.         return $this->ipModificacion;
  113.     }
  114.     public function setIpModificacion(string $ipModificacion): self
  115.     {
  116.         $this->ipModificacion $ipModificacion;
  117.         return $this;
  118.     }
  119.     public function getIdMenu(): ?Menu
  120.     {
  121.         return $this->idMenu;
  122.     }
  123.     public function setIdMenu(?Menu $idMenu): self
  124.     {
  125.         $this->idMenu $idMenu;
  126.         return $this;
  127.     }
  128.     public function getIdCargaDocumento(): ?CargaDocumento
  129.     {
  130.         return $this->idCargaDocumento;
  131.     }
  132.     public function setIdCargaDocumento(?CargaDocumento $idCargaDocumento): self
  133.     {
  134.         $this->idCargaDocumento $idCargaDocumento;
  135.         return $this;
  136.     }
  137. }