src/Entity/BC/VatCombination.php line 9

Open in your IDE?
  1. <?php
  2. namespace App\Entity\BC;
  3. use App\Repository\BC\VatCombinationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassVatCombinationRepository::class)]
  6. class VatCombination
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column(type'integer')]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityVatProductGroup::class, inversedBy'combinations')]
  13.     #[ORM\JoinColumn(nullablefalse)]
  14.     private ?VatProductGroup $vatProductGroup null;
  15.     #[ORM\Column(type'string'length50nullabletrue)]
  16.     private ?string $vatProdPostingGroup null;
  17.     #[ORM\Column(type'integer'nullabletrue)]
  18.     private ?int $vatPercent null;
  19.     #[ORM\Column(type'string'length50nullabletrue)]
  20.     private ?string $vatId null;
  21.     #[ORM\ManyToOne(targetEntityTaxCalculationType::class)]
  22.     #[ORM\JoinColumn(nullabletrue)]
  23.     private ?TaxCalculationType $taxCalculationType null;
  24.     #[ORM\Column(type'boolean')]
  25.     private bool $isBlocked false;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function getVatProductGroup(): ?VatProductGroup
  31.     {
  32.         return $this->vatProductGroup;
  33.     }
  34.     public function setVatProductGroup(?VatProductGroup $vatProductGroup): void
  35.     {
  36.         $this->vatProductGroup $vatProductGroup;
  37.     }
  38.     public function getVatProdPostingGroup(): ?string
  39.     {
  40.         return $this->vatProdPostingGroup;
  41.     }
  42.     public function setVatProdPostingGroup(?string $vatProdPostingGroup): void
  43.     {
  44.         $this->vatProdPostingGroup $vatProdPostingGroup;
  45.     }
  46.     public function getVatPercent(): ?int
  47.     {
  48.         return $this->vatPercent;
  49.     }
  50.     public function setVatPercent(?int $vatPercent): void
  51.     {
  52.         $this->vatPercent $vatPercent;
  53.     }
  54.     public function getVatId(): ?string
  55.     {
  56.         return $this->vatId;
  57.     }
  58.     public function setVatId(?string $vatId): void
  59.     {
  60.         $this->vatId $vatId;
  61.     }
  62.     public function getTaxCalculationType(): ?TaxCalculationType
  63.     {
  64.         return $this->taxCalculationType;
  65.     }
  66.     public function setTaxCalculationType(?TaxCalculationType $taxCalculationType): void
  67.     {
  68.         $this->taxCalculationType $taxCalculationType;
  69.     }
  70.     public function isBlocked(): bool
  71.     {
  72.         return $this->isBlocked;
  73.     }
  74.     public function setIsBlocked(?bool $isBlocked): void
  75.     {
  76.         $this->isBlocked $isBlocked ?? false;
  77.     }
  78. }