src/Entity/Fidelizacion/UsoCupones.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Fidelizacion;
  3. use App\Entity\Contabilidad\Pagos;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * UsoCupones
  7.  *
  8.  * @ORM\Table(name="fidelizacion.uso_cupones", indexes={@ORM\Index(name="IDX_4F9D9FB5AB18E2D0", columns={"id_cupones"}), @ORM\Index(name="IDX_4F9D9FB5341E4CCF", columns={"id_pagos"})})
  9.  * @ORM\Entity
  10.  */
  11. class UsoCupones
  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="fidelizacion.uso_cupones_id_seq", allocationSize=1, initialValue=1)
  20.      */
  21.     private $id;
  22.     /**
  23.      * @var string
  24.      *
  25.      * @ORM\Column(name="valor", type="decimal", precision=10, scale=2, nullable=false)
  26.      */
  27.     private $valor;
  28.     /**
  29.      * @var int
  30.      *
  31.      * @ORM\Column(name="id_usuario_modificacion", type="integer", nullable=false)
  32.      */
  33.     private $idUsuarioModificacion;
  34.     /**
  35.      * @var \DateTime
  36.      *
  37.      * @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false)
  38.      */
  39.     private $fechaModificacion;
  40.     /**
  41.      * @var string
  42.      *
  43.      * @ORM\Column(name="ip_modificacion", type="string", length=50, nullable=false)
  44.      */
  45.     private $ipModificacion;
  46.     /**
  47.      * @var \Cupones
  48.      *
  49.      * @ORM\ManyToOne(targetEntity="Cupones")
  50.      * @ORM\JoinColumns({
  51.      *   @ORM\JoinColumn(name="id_cupones", referencedColumnName="id")
  52.      * })
  53.      */
  54.     private $idCupones;
  55.     /**
  56.      * @var \App\Entity\Contabilidad\Pagos
  57.      *
  58.      * @ORM\ManyToOne(targetEntity="App\Entity\Contabilidad\Pagos")
  59.      * @ORM\JoinColumns({
  60.      *   @ORM\JoinColumn(name="id_pagos", referencedColumnName="id")
  61.      * })
  62.      */
  63.     private $idPagos;
  64.     public function getId(): ?int
  65.     {
  66.         return $this->id;
  67.     }
  68.     public function getValor(): ?string
  69.     {
  70.         return $this->valor;
  71.     }
  72.     public function setValor(string $valor): self
  73.     {
  74.         $this->valor $valor;
  75.         return $this;
  76.     }
  77.     public function getIdUsuarioModificacion(): ?int
  78.     {
  79.         return $this->idUsuarioModificacion;
  80.     }
  81.     public function setIdUsuarioModificacion(int $idUsuarioModificacion): self
  82.     {
  83.         $this->idUsuarioModificacion $idUsuarioModificacion;
  84.         return $this;
  85.     }
  86.     public function getFechaModificacion(): ?\DateTimeInterface
  87.     {
  88.         return $this->fechaModificacion;
  89.     }
  90.     public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self
  91.     {
  92.         $this->fechaModificacion $fechaModificacion;
  93.         return $this;
  94.     }
  95.     public function getIpModificacion(): ?string
  96.     {
  97.         return $this->ipModificacion;
  98.     }
  99.     public function setIpModificacion(string $ipModificacion): self
  100.     {
  101.         $this->ipModificacion $ipModificacion;
  102.         return $this;
  103.     }
  104.     public function getIdCupones(): ?Cupones
  105.     {
  106.         return $this->idCupones;
  107.     }
  108.     public function setIdCupones(?Cupones $idCupones): self
  109.     {
  110.         $this->idCupones $idCupones;
  111.         return $this;
  112.     }
  113.     public function getIdPagos(): ?Pagos
  114.     {
  115.         return $this->idPagos;
  116.     }
  117.     public function setIdPagos(?Pagos $idPagos): self
  118.     {
  119.         $this->idPagos $idPagos;
  120.         return $this;
  121.     }
  122. }