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 int|null
  30.      *
  31.      * @ORM\Column(name="porcentaje", type="smallint", nullable=true)
  32.      */
  33.     private $porcentaje;
  34.     /**
  35.      * @var bool|null
  36.      *
  37.      * @ORM\Column(name="activo", type="boolean", nullable=true)
  38.      */
  39.     private $activo;
  40.     public function getId(): ?int
  41.     {
  42.         return $this->id;
  43.     }
  44.     public function getNombre(): ?string
  45.     {
  46.         return $this->nombre;
  47.     }
  48.     public function setNombre(string $nombre): self
  49.     {
  50.         $this->nombre $nombre;
  51.         return $this;
  52.     }
  53.     public function getPorcentaje(): ?int
  54.     {
  55.         return $this->porcentaje;
  56.     }
  57.     public function setPorcentaje(?int $porcentaje): self
  58.     {
  59.         $this->porcentaje $porcentaje;
  60.         return $this;
  61.     }
  62.     public function getActivo(): ?bool
  63.     {
  64.         return $this->activo;
  65.     }
  66.     public function setActivo(?bool $activo): self
  67.     {
  68.         $this->activo $activo;
  69.         return $this;
  70.     }
  71.     public function __toString(): ?string
  72.     {
  73.         return $this->porcentaje;
  74.     }
  75. }