src/Entity/GroupTaxExemption.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * GroupTaxExemption
  6.  *
  7.  * @ORM\Table(name="group_tax_exemption")
  8.  * @ORM\Entity(repositoryClass="App\Repository\GroupTaxExemptionRepository")
  9.  */
  10. class GroupTaxExemption
  11. {
  12.     /**
  13.      * @var \Ramsey\Uuid\UuidInterface
  14.      *
  15.      * @ORM\Id
  16.      *  @ORM\Column(type="uuid", unique=true)
  17.      * @ORM\GeneratedValue(strategy="CUSTOM")
  18.      * @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var string
  23.      *
  24.      * @ORM\Column(name="name", type="string", length=255)
  25.      */
  26.     private $name;
  27.     /**
  28.      * @var string
  29.      *
  30.      * @ORM\Column(name="code", type="string", length=255, unique=true)
  31.      */
  32.     private $code;
  33.     /**
  34.      * @ORM\OneToMany(targetEntity="App\Entity\TaxExemption", mappedBy="group")
  35.      */
  36.     private $taxExemptions;
  37.     /**
  38.      * Get id.
  39.      */
  40.     public function getId()
  41.     {
  42.         return $this->id;
  43.     }
  44.     /**
  45.      * Set name.
  46.      *
  47.      * @param string $name
  48.      *
  49.      * @return GroupTaxExemption
  50.      */
  51.     public function setName($name)
  52.     {
  53.         $this->name $name;
  54.         return $this;
  55.     }
  56.     /**
  57.      * Get name.
  58.      *
  59.      * @return string
  60.      */
  61.     public function getName()
  62.     {
  63.         return $this->name;
  64.     }
  65.     /**
  66.      * Set code.
  67.      *
  68.      * @param string $code
  69.      *
  70.      * @return GroupTaxExemption
  71.      */
  72.     public function setCode($code)
  73.     {
  74.         $this->code $code;
  75.         return $this;
  76.     }
  77.     /**
  78.      * Get code.
  79.      *
  80.      * @return string
  81.      */
  82.     public function getCode()
  83.     {
  84.         return $this->code;
  85.     }
  86.     /**
  87.      * @return []TaxExemption
  88.      */
  89.     public function getTaxExemptions()
  90.     {
  91.         return $this->taxExemptions;
  92.     }
  93.     /**
  94.      * @param mixed $taxExemptions
  95.      * @return GroupTaxExemption
  96.      */
  97.     public function setTaxExemptions($taxExemptions)
  98.     {
  99.         $this->taxExemptions $taxExemptions;
  100.         return $this;
  101.     }
  102. }