src/Entity/VatRate.php line 22

  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping\Id;
  4. use Doctrine\ORM\Mapping\Index;
  5. use Doctrine\ORM\Mapping\Entity;
  6. use Doctrine\ORM\Mapping\Table;
  7. use Doctrine\ORM\Mapping\Column;
  8. use Doctrine\ORM\Mapping\JoinColumn;
  9. use Doctrine\ORM\Mapping\ManyToOne;
  10. use Doctrine\ORM\Mapping\OneToOne;
  11. use Doctrine\ORM\Mapping\OneToMany;
  12. use Doctrine\ORM\Mapping\GeneratedValue;
  13. use Doctrine\ORM\Mapping\HasLifecycleCallbacks;
  14. /**
  15.  * VatRate
  16.  */
  17. #[Entity(repositoryClass\App\Entity\VatRateRepository::class)]
  18. #[Table(name'vat_rate')]
  19. class VatRate
  20. {
  21.     /**
  22.      * @var float
  23.      */
  24.     #[Column(name'vat_ratio'type'float'nullablefalse)]
  25.     private $vatRatio;
  26.     /**
  27.      * @var string
  28.      */
  29.     #[Column(name'vat_text'type'string'length50nullablefalse)]
  30.     private $vatText;
  31.     /**
  32.      * @var boolean
  33.      */
  34.     #[Column(name'is_the_effective'type'boolean'nullabletrue)]
  35.     private $isTheEffective;
  36.     /**
  37.      * @var integer
  38.      */
  39.     #[Column(name'vat_rate_id'type'smallint'nullablefalse)]
  40.     #[Id]
  41.     #[GeneratedValue(strategy'IDENTITY')]
  42.     private $vatRateId;
  43.     /**
  44.      * Set vatRatio
  45.      *
  46.      * @param string $vatRatio
  47.      *
  48.      * @return VatRate
  49.      */
  50.     public function setVatRatio($vatRatio)
  51.     {
  52.         $this->vatRatio $vatRatio;
  53.         return $this;
  54.     }
  55.     /**
  56.      * Get vatRatio
  57.      *
  58.      * @return string
  59.      */
  60.     public function getVatRatio()
  61.     {
  62.         return $this->vatRatio;
  63.     }
  64.     /**
  65.      * Set vatText
  66.      *
  67.      * @param string $vatText
  68.      *
  69.      * @return VatRate
  70.      */
  71.     public function setVatText($vatText)
  72.     {
  73.         $this->vatText $vatText;
  74.         return $this;
  75.     }
  76.     /**
  77.      * Get vatText
  78.      *
  79.      * @return string
  80.      */
  81.     public function getVatText()
  82.     {
  83.         return $this->vatText;
  84.     }
  85.     /**
  86.      * Set isTheEffective
  87.      *
  88.      * @param boolean $isTheEffective
  89.      *
  90.      * @return VatRate
  91.      */
  92.     public function setIsTheEffective($isTheEffective)
  93.     {
  94.         $this->isTheEffective $isTheEffective;
  95.         return $this;
  96.     }
  97.     /**
  98.      * Get isTheEffective
  99.      *
  100.      * @return boolean
  101.      */
  102.     public function getIsTheEffective()
  103.     {
  104.         return $this->isTheEffective;
  105.     }
  106.     /**
  107.      * Get vatRateId
  108.      *
  109.      * @return integer
  110.      */
  111.     public function getVatRateId()
  112.     {
  113.         return $this->vatRateId;
  114.     }
  115.     /**
  116.      * Set vatRateId
  117.      *
  118.      * @param integer $vatRateId
  119.      *
  120.      * @return VatRate
  121.      */
  122.     public function setVatRateId($vatRateId)
  123.     {
  124.         $this->vatRateId $vatRateId;
  125.         return $this;
  126.     }
  127. }