src/Entity/TaxExemption.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use JMS\Serializer\Annotation AS JMS;
  5. /**
  6.  * TaxExemption
  7.  *
  8.  * @ORM\Table(name="tax_exemption")
  9.  * @ORM\Entity(repositoryClass="App\Repository\TaxExemptionRepository")
  10.  *
  11.  
  12.  */
  13. class TaxExemption
  14. {
  15.     /**
  16.      * @var \Ramsey\Uuid\UuidInterface
  17.      *
  18.      * @ORM\Id
  19.      *  @ORM\Column(type="uuid", unique=true)
  20.      * @ORM\GeneratedValue(strategy="CUSTOM")
  21.      * @ORM\CustomIdGenerator(class="Ramsey\Uuid\Doctrine\UuidGenerator")
  22.      */
  23.     private $id;
  24.     /**
  25.      * @var string
  26.      *
  27.      * @ORM\Column(name="name", type="string", length=50, nullable=true)
  28.      */
  29.     private $name;
  30.     /**
  31.      * @var string
  32.      *
  33.      * @ORM\Column(name="code", type="string", length=10)
  34.      */
  35.     private $code;
  36.     /**
  37.      * @var string
  38.      *
  39.      * @ORM\Column(name="description", type="string", length=255, nullable=true)
  40.      */
  41.     private $description;
  42.     /**
  43.      * @var string
  44.      *
  45.      * @ORM\Column(name="details", type="string", length=1000, nullable=true)
  46.      */
  47.     private $details;
  48.     /**
  49.      * @ORM\ManyToOne(targetEntity="App\Entity\GroupTaxExemption", inversedBy="taxExemptions")
  50.      */
  51.     private $group;
  52.     /**
  53.      * @return \Ramsey\Uuid\UuidInterface
  54.      */
  55.     public function getId()
  56.     {
  57.         return $this->id;
  58.     }
  59.     /**
  60.      * Set name
  61.      *
  62.      * @param string $name
  63.      *
  64.      * @return TaxExemption
  65.      */
  66.     public function setName($name)
  67.     {
  68.         $this->name $name;
  69.         return $this;
  70.     }
  71.     /**
  72.      * Get name
  73.      *
  74.      * @return string
  75.      */
  76.     public function getName()
  77.     {
  78.         return $this->name;
  79.     }
  80.     /**
  81.      * Set code
  82.      *
  83.      * @param string $code
  84.      *
  85.      * @return TaxExemption
  86.      */
  87.     public function setCode($code)
  88.     {
  89.         $this->code $code;
  90.         return $this;
  91.     }
  92.     /**
  93.      * Get code
  94.      *
  95.      * @return string
  96.      */
  97.     public function getCode()
  98.     {
  99.         return $this->code;
  100.     }
  101.     /**
  102.      * Set description
  103.      *
  104.      * @param string $description
  105.      *
  106.      * @return TaxExemption
  107.      */
  108.     public function setDescription($description)
  109.     {
  110.         $this->description $description;
  111.         return $this;
  112.     }
  113.     /**
  114.      * Get description
  115.      *
  116.      * @return string
  117.      */
  118.     public function getDescription()
  119.     {
  120.         return $this->description;
  121.     }
  122.     /**
  123.      * @return string
  124.      */
  125.     public function getDetails()
  126.     {
  127.         return $this->details;
  128.     }
  129.     /**
  130.      * @param string $details
  131.      * @return TaxExemption
  132.      */
  133.     public function setDetails($details)
  134.     {
  135.         $this->details $details;
  136.         return $this;
  137.     }
  138.     /**
  139.      * @return GroupTaxExemption
  140.      */
  141.     public function getGroup()
  142.     {
  143.         return $this->group;
  144.     }
  145.     /**
  146.      * @param mixed $group
  147.      */
  148.     public function setGroup($group)
  149.     {
  150.         $this->group $group;
  151.         return $this;
  152.     }
  153. }