vendor/shopware/core/System/Tax/TaxEntity.php line 12

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\System\Tax;
  3. use Shopware\Core\Checkout\Shipping\ShippingMethodCollection;
  4. use Shopware\Core\Content\Product\ProductCollection;
  5. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  7. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  8. use Shopware\Core\System\Tax\Aggregate\TaxRule\TaxRuleCollection;
  9. class TaxEntity extends Entity
  10. {
  11.     use EntityIdTrait;
  12.     use EntityCustomFieldsTrait;
  13.     /**
  14.      * @var float
  15.      */
  16.     protected $taxRate;
  17.     /**
  18.      * @var string
  19.      */
  20.     protected $name;
  21.     /**
  22.      * @var int
  23.      */
  24.     protected $position;
  25.     /**
  26.      * @var ProductCollection|null
  27.      */
  28.     protected $products;
  29.     /**
  30.      * @var TaxRuleCollection|null
  31.      */
  32.     protected $rules;
  33.     /**
  34.      * @var ShippingMethodCollection|null
  35.      */
  36.     protected $shippingMethods;
  37.     public function getTaxRate(): float
  38.     {
  39.         return $this->taxRate;
  40.     }
  41.     public function setTaxRate(float $taxRate): void
  42.     {
  43.         $this->taxRate $taxRate;
  44.     }
  45.     public function getName(): string
  46.     {
  47.         return $this->name;
  48.     }
  49.     public function setName(string $name): void
  50.     {
  51.         $this->name $name;
  52.     }
  53.     public function getPosition(): int
  54.     {
  55.         return $this->position;
  56.     }
  57.     public function setPosition(int $position): void
  58.     {
  59.         $this->position $position;
  60.     }
  61.     public function getProducts(): ?ProductCollection
  62.     {
  63.         return $this->products;
  64.     }
  65.     public function setProducts(ProductCollection $products): void
  66.     {
  67.         $this->products $products;
  68.     }
  69.     public function getRules(): ?TaxRuleCollection
  70.     {
  71.         return $this->rules;
  72.     }
  73.     public function setRules(TaxRuleCollection $rules): void
  74.     {
  75.         $this->rules $rules;
  76.     }
  77.     public function getShippingMethods(): ?ShippingMethodCollection
  78.     {
  79.         return $this->shippingMethods;
  80.     }
  81.     public function setShippingMethods(ShippingMethodCollection $shippingMethods): void
  82.     {
  83.         $this->shippingMethods $shippingMethods;
  84.     }
  85. }