vendor/shopware/core/System/Tax/Aggregate/TaxRule/TaxRuleEntity.php line 11

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\System\Tax\Aggregate\TaxRule;
  3. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  4. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  5. use Shopware\Core\System\Country\CountryEntity;
  6. use Shopware\Core\System\Tax\Aggregate\TaxRuleType\TaxRuleTypeEntity;
  7. use Shopware\Core\System\Tax\TaxEntity;
  8. class TaxRuleEntity extends Entity
  9. {
  10.     use EntityIdTrait;
  11.     /**
  12.      * @var string
  13.      */
  14.     protected $taxId;
  15.     /**
  16.      * @var TaxEntity|null
  17.      */
  18.     protected $tax;
  19.     /**
  20.      * @var string
  21.      */
  22.     protected $countryId;
  23.     /**
  24.      * @var CountryEntity|null
  25.      */
  26.     protected $country;
  27.     /**
  28.      * @var string
  29.      */
  30.     protected $taxRuleTypeId;
  31.     /**
  32.      * @var TaxRuleTypeEntity
  33.      */
  34.     protected $type;
  35.     /**
  36.      * @var float
  37.      */
  38.     protected $taxRate;
  39.     /**
  40.      * @var array|null
  41.      */
  42.     protected $data;
  43.     public function getTaxId(): string
  44.     {
  45.         return $this->taxId;
  46.     }
  47.     public function setTaxId(string $taxId): void
  48.     {
  49.         $this->taxId $taxId;
  50.     }
  51.     public function getTax(): ?TaxEntity
  52.     {
  53.         return $this->tax;
  54.     }
  55.     public function setTax(?TaxEntity $tax): void
  56.     {
  57.         $this->tax $tax;
  58.     }
  59.     public function getCountryId(): string
  60.     {
  61.         return $this->countryId;
  62.     }
  63.     public function setCountryId(string $countryId): void
  64.     {
  65.         $this->countryId $countryId;
  66.     }
  67.     public function getCountry(): ?CountryEntity
  68.     {
  69.         return $this->country;
  70.     }
  71.     public function setCountry(?CountryEntity $country): void
  72.     {
  73.         $this->country $country;
  74.     }
  75.     public function getTaxRuleTypeId(): string
  76.     {
  77.         return $this->taxRuleTypeId;
  78.     }
  79.     public function setTaxRuleTypeId(string $taxRuleTypeId): void
  80.     {
  81.         $this->taxRuleTypeId $taxRuleTypeId;
  82.     }
  83.     public function getType(): TaxRuleTypeEntity
  84.     {
  85.         return $this->type;
  86.     }
  87.     public function setType(TaxRuleTypeEntity $type): void
  88.     {
  89.         $this->type $type;
  90.     }
  91.     public function getTaxRate(): float
  92.     {
  93.         return $this->taxRate;
  94.     }
  95.     public function setTaxRate(float $taxRate): void
  96.     {
  97.         $this->taxRate $taxRate;
  98.     }
  99.     public function getData(): ?array
  100.     {
  101.         return $this->data;
  102.     }
  103.     public function setData(?array $data): void
  104.     {
  105.         $this->data $data;
  106.     }
  107. }