<?php
namespace App\Entity\Catalogos;
use Doctrine\ORM\Mapping as ORM;
/**
* PorcentajeIva
*
* @ORM\Table(name="catalogos.porcentaje_iva")
* @ORM\Entity
*/
class PorcentajeIva
{
/**
* @var int
*
* @ORM\Column(name="id", type="integer", nullable=false)
* @ORM\Id
* @ORM\GeneratedValue(strategy="SEQUENCE")
* @ORM\SequenceGenerator(sequenceName="catalogos.porcentaje_iva_id_seq", allocationSize=1, initialValue=1)
*/
private $id;
/**
* @var string
*
* @ORM\Column(name="nombre", type="string", length=30, nullable=false, options={"comment"="Persona Natural
Persona JurÃdica"})
*/
private $nombre;
/**
* @var int|null
*
* @ORM\Column(name="porcentaje", type="smallint", nullable=true)
*/
private $porcentaje;
/**
* @var bool|null
*
* @ORM\Column(name="activo", type="boolean", nullable=true)
*/
private $activo;
public function getId(): ?int
{
return $this->id;
}
public function getNombre(): ?string
{
return $this->nombre;
}
public function setNombre(string $nombre): self
{
$this->nombre = $nombre;
return $this;
}
public function getPorcentaje(): ?int
{
return $this->porcentaje;
}
public function setPorcentaje(?int $porcentaje): self
{
$this->porcentaje = $porcentaje;
return $this;
}
public function getActivo(): ?bool
{
return $this->activo;
}
public function setActivo(?bool $activo): self
{
$this->activo = $activo;
return $this;
}
public function __toString(): ?string
{
return $this->porcentaje;
}
}