src/Entity/Catalogos/PorcentajeIva.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Catalogos;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * PorcentajeIva
  6.  *
  7.  * @ORM\Table(name="catalogos.porcentaje_iva")
  8.  * @ORM\Entity
  9.  */
  10. class PorcentajeIva
  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="catalogos.porcentaje_iva_id_seq", allocationSize=1, initialValue=1)
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="nombre", type="string", length=30, nullable=false, options={"comment"="Persona Natural
  25. Persona Jurídica"})
  26.      */
  27.     private $nombre;
  28.     /**
  29.      * @var string
  30.      *
  31.      * @ORM\Column(name="codigo", type="string", length=30, nullable=false, options={"comment"="Persona Natural
  32. Persona Jurídica"})
  33.      */
  34.     private $codigo;
  35.     /**
  36.      * @var int|null
  37.      *
  38.      * @ORM\Column(name="porcentaje", type="smallint", nullable=true)
  39.      */
  40.     private $porcentaje;
  41.     /**
  42.      * @var bool|null
  43.      *
  44.      * @ORM\Column(name="activo", type="boolean", nullable=true)
  45.      */
  46.     private $activo;
  47.     public function getId(): ?int
  48.     {
  49.         return $this->id;
  50.     }
  51.     public function getNombre(): ?string
  52.     {
  53.         return $this->nombre;
  54.     }
  55.     public function setNombre(string $nombre): self
  56.     {
  57.         $this->nombre $nombre;
  58.         return $this;
  59.     }
  60.     public function getCodigo(): ?string
  61.     {
  62.         return $this->codigo;
  63.     }
  64.     public function setCodigo(string $codigo): self
  65.     {
  66.         $this->codigo $codigo;
  67.         return $this;
  68.     }
  69.     public function getPorcentaje(): ?int
  70.     {
  71.         return $this->porcentaje;
  72.     }
  73.     public function setPorcentaje(?int $porcentaje): self
  74.     {
  75.         $this->porcentaje $porcentaje;
  76.         return $this;
  77.     }
  78.     public function getActivo(): ?bool
  79.     {
  80.         return $this->activo;
  81.     }
  82.     public function setActivo(?bool $activo): self
  83.     {
  84.         $this->activo $activo;
  85.         return $this;
  86.     }
  87.     public function __toString(): ?string
  88.     {
  89.         return $this->porcentaje;
  90.     }
  91. }