src/Entity/InvoiceDetailTaxes.php line 15

  1. <?php
  2. /*
  3.  *  @author Guerby Duval <info@tranzaksyon.com>
  4.  *  @link https://tranzaksyon.com
  5.  *  @copyright You are not allowed to remove this author "Guerby Duval <info@tranzaksyon.com>", the link "https://tranzaksyon.com" neither this copyright.
  6.  */
  7. namespace App\Entity;
  8. use App\Repository\InvoiceDetailTaxesRepository;
  9. use Doctrine\DBAL\Types\Types;
  10. use Doctrine\ORM\Mapping as ORM;
  11. #[ORM\Entity(repositoryClassInvoiceDetailTaxesRepository::class)]
  12. class InvoiceDetailTaxes
  13. {
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue]
  16.     #[ORM\Column]
  17.     private ?int $id null;
  18.     #[ORM\ManyToOne(inversedBy'invoiceDetailTaxes')]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private ?InvoiceDetail $invoiceDetail null;
  21.     #[ORM\Column]
  22.     private ?int $code null;
  23.     #[ORM\Column]
  24.     private ?int $percentage null;
  25.     #[ORM\Column(typeTypes::DECIMALprecision10scale2)]
  26.     private ?string $fare null;
  27.     #[ORM\Column(typeTypes::DECIMALprecision10scale2)]
  28.     private float $base 0;
  29.     #[ORM\Column(typeTypes::DECIMALprecision10scale2)]
  30.     private float $taxAmount 0;
  31.     public function getId(): ?int
  32.     {
  33.         return $this->id;
  34.     }
  35.     public function getInvoiceDetail(): ?InvoiceDetail
  36.     {
  37.         return $this->invoiceDetail;
  38.     }
  39.     public function setInvoiceDetail(?InvoiceDetail $invoiceDetail): self
  40.     {
  41.         $this->invoiceDetail $invoiceDetail;
  42.         return $this;
  43.     }
  44.     public function getCode(): ?int
  45.     {
  46.         return $this->code;
  47.     }
  48.     public function setCode(int $code): self
  49.     {
  50.         $this->code $code;
  51.         return $this;
  52.     }
  53.     public function getPercentage(): ?int
  54.     {
  55.         return $this->percentage;
  56.     }
  57.     public function setPercentage(int $percentage): self
  58.     {
  59.         $this->percentage $percentage;
  60.         return $this;
  61.     }
  62.     public function getFare(): ?string
  63.     {
  64.         return $this->fare;
  65.     }
  66.     public function setFare(string $fare): self
  67.     {
  68.         $this->fare $fare;
  69.         return $this;
  70.     }
  71.     public function getBase(): float
  72.     {
  73.         return $this->base;
  74.     }
  75.     public function setBase(float $base): self
  76.     {
  77.         $this->base $base;
  78.         return $this;
  79.     }
  80.     public function getTaxAmount(): float
  81.     {
  82.         return $this->taxAmount;
  83.     }
  84.     public function setTaxAmount(float $taxAmount): self
  85.     {
  86.         $this->taxAmount $taxAmount;
  87.         return $this;
  88.     }
  89. }