src/Entity/System/TaxRule.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Table(name="ps_tax_rule")
  6.  *
  7.  * @ORM\Entity(repositoryClass="App\Repository\System\TaxRuleRepository")
  8.  */
  9. class TaxRule
  10. {
  11.     /**
  12.      * @var int|null
  13.      *
  14.      * @ORM\Id
  15.      *
  16.      * @ORM\GeneratedValue(strategy="AUTO")
  17.      *
  18.      * @ORM\Column(type="integer", name="id_tax")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @var TaxRuleGroup
  23.      *
  24.      * @ORM\ManyToOne(targetEntity="TaxRuleGroup")
  25.      *
  26.      * @ORM\JoinColumn(name="id_tax_rules_group", referencedColumnName="id_tax_rules_group")
  27.      */
  28.     private $taxRuleGroup;
  29.     /**
  30.      * @var Country
  31.      *
  32.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Country")
  33.      *
  34.      * @ORM\JoinColumn(name="id_country", referencedColumnName="id_country")
  35.      */
  36.     private $country;
  37.     /**
  38.      * @var State
  39.      *
  40.      * @ORM\Column(type="integer", name="id_state")
  41.      */
  42.     private $state;
  43.     /**
  44.      * @var int
  45.      *
  46.      * @ORM\Column(type="integer")
  47.      */
  48.     private $behavior;
  49.     /**
  50.      * @var string
  51.      *
  52.      * @ORM\Column(type="string", name="description")
  53.      */
  54.     private $countryDestinationIso;
  55.     /**
  56.      * @var Tax
  57.      *
  58.      * @ORM\ManyToOne(targetEntity="App\Entity\System\Tax")
  59.      *
  60.      * @ORM\JoinColumn(name="id_tax", referencedColumnName="id_tax")
  61.      */
  62.     private $tax;
  63.     /**
  64.      * @var string
  65.      *
  66.      * @ORM\Column(type="string", name="country_origin")
  67.      */
  68.     private $countryOriginIso;
  69.     public function getId(): ?int
  70.     {
  71.         return $this->id;
  72.     }
  73.     public function setId(int $id): TaxRule
  74.     {
  75.         $this->id $id;
  76.         return $this;
  77.     }
  78.     public function getTaxRuleGroup(): TaxRuleGroup
  79.     {
  80.         return $this->taxRuleGroup;
  81.     }
  82.     public function setTaxRuleGroup(TaxRuleGroup $taxRuleGroup): TaxRule
  83.     {
  84.         $this->taxRuleGroup $taxRuleGroup;
  85.         return $this;
  86.     }
  87.     public function getCountry(): Country
  88.     {
  89.         return $this->country;
  90.     }
  91.     public function setCountry(Country $country): TaxRule
  92.     {
  93.         $this->country $country;
  94.         return $this;
  95.     }
  96.     public function getState(): State
  97.     {
  98.         return $this->state;
  99.     }
  100.     public function setState(State $state): TaxRule
  101.     {
  102.         $this->state $state;
  103.         return $this;
  104.     }
  105.     public function getBehavior(): int
  106.     {
  107.         return $this->behavior;
  108.     }
  109.     public function setBehavior(int $behavior): TaxRule
  110.     {
  111.         $this->behavior $behavior;
  112.         return $this;
  113.     }
  114.     public function getCountryDestinationIso(): string
  115.     {
  116.         return $this->countryDestinationIso;
  117.     }
  118.     public function setCountryDestinationIso(string $countryDestinationIso): TaxRule
  119.     {
  120.         $this->countryDestinationIso $countryDestinationIso;
  121.         return $this;
  122.     }
  123.     public function getTax(): Tax
  124.     {
  125.         return $this->tax;
  126.     }
  127.     public function setTax(Tax $tax): TaxRule
  128.     {
  129.         $this->tax $tax;
  130.         return $this;
  131.     }
  132.     public function getCountryOriginIso(): string
  133.     {
  134.         return $this->countryOriginIso;
  135.     }
  136.     public function setCountryOriginIso(string $countryOriginIso): TaxRule
  137.     {
  138.         $this->countryOriginIso $countryOriginIso;
  139.         return $this;
  140.     }
  141. }