src/Entity/Contabilidad/Descuentos.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Contabilidad;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Descuentos
  6.  *
  7.  * @ORM\Table(name="contabilidad.descuentos", indexes={@ORM\Index(name="IDX_F8476ED1AB18E2D0", columns={"id_cupones"}), @ORM\Index(name="IDX_F8476ED117F00A22", columns={"id_cuenta"})})
  8.  * @ORM\Entity
  9.  */
  10. class Descuentos
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer", nullable=false)
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="SEQUENCE")
  18.      * @ORM\SequenceGenerator(sequenceName="contabilidad.descuentos_id_seq", allocationSize=1, initialValue=1)
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var int
  23.      *
  24.      * @ORM\Column(name="porcentaje", type="smallint", nullable=false)
  25.      */
  26.     private $porcentaje;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="valor", type="decimal", precision=10, scale=2, nullable=false)
  31.      */
  32.     private $valor;
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="observacion", type="text", nullable=false)
  37.      */
  38.     private $observacion;
  39.     /**
  40.      * @var int
  41.      *
  42.      * @ORM\Column(name="id_usuario_modificacion", type="integer", nullable=false)
  43.      */
  44.     private $idUsuarioModificacion;
  45.     /**
  46.      * @var \DateTime
  47.      *
  48.      * @ORM\Column(name="fecha_modificacion", type="datetime", nullable=false)
  49.      */
  50.     private $fechaModificacion;
  51.     /**
  52.      * @var string
  53.      *
  54.      * @ORM\Column(name="ip_modificacion", type="string", length=50, nullable=false)
  55.      */
  56.     private $ipModificacion;
  57.     /**
  58.      * @var \Pagos
  59.      *
  60.      * @ORM\ManyToOne(targetEntity="Pagos")
  61.      * @ORM\JoinColumns({
  62.      *   @ORM\JoinColumn(name="id_pagos", referencedColumnName="id")
  63.      * })
  64.      */
  65.     private $idPagos;
  66.     public function getId(): ?int
  67.     {
  68.         return $this->id;
  69.     }
  70.     public function getPorcentaje(): ?int
  71.     {
  72.         return $this->porcentaje;
  73.     }
  74.     public function setPorcentaje(int $porcentaje): self
  75.     {
  76.         $this->porcentaje $porcentaje;
  77.         return $this;
  78.     }
  79.     public function getValor(): ?string
  80.     {
  81.         return $this->valor;
  82.     }
  83.     public function setValor(string $valor): self
  84.     {
  85.         $this->valor $valor;
  86.         return $this;
  87.     }
  88.     public function getObservacion(): ?string
  89.     {
  90.         return $this->observacion;
  91.     }
  92.     public function setObservacion(string $observacion): self
  93.     {
  94.         $this->observacion $observacion;
  95.         return $this;
  96.     }
  97.     public function getIdPagos(): ?Pagos
  98.     {
  99.         return $this->idPagos;
  100.     }
  101.     public function setIdPagos(?Pagos $idPagos): self
  102.     {
  103.         $this->idPagos $idPagos;
  104.         return $this;
  105.     }
  106.     public function getIdUsuarioModificacion(): ?int
  107.     {
  108.         return $this->idUsuarioModificacion;
  109.     }
  110.     public function setIdUsuarioModificacion(int $idUsuarioModificacion): self
  111.     {
  112.         $this->idUsuarioModificacion $idUsuarioModificacion;
  113.         return $this;
  114.     }
  115.     public function getFechaModificacion(): ?\DateTimeInterface
  116.     {
  117.         return $this->fechaModificacion;
  118.     }
  119.     public function setFechaModificacion(\DateTimeInterface $fechaModificacion): self
  120.     {
  121.         $this->fechaModificacion $fechaModificacion;
  122.         return $this;
  123.     }
  124.     public function getIpModificacion(): ?string
  125.     {
  126.         return $this->ipModificacion;
  127.     }
  128.     public function setIpModificacion(string $ipModificacion): self
  129.     {
  130.         $this->ipModificacion $ipModificacion;
  131.         return $this;
  132.     }
  133. }