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

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\EntityIdTrait;
  7. use Shopware\Core\System\Tax\Aggregate\TaxRule\TaxRuleCollection;
  8. class TaxEntity extends Entity
  9. {
  10.     use EntityIdTrait;
  11.     /**
  12.      * @var float
  13.      */
  14.     protected $taxRate;
  15.     /**
  16.      * @var string
  17.      */
  18.     protected $name;
  19.     /**
  20.      * @var ProductCollection|null
  21.      */
  22.     protected $products;
  23.     /**
  24.      * @var array|null
  25.      */
  26.     protected $customFields;
  27.     /**
  28.      * @var TaxRuleCollection|null
  29.      */
  30.     protected $rules;
  31.     /**
  32.      * @var ShippingMethodCollection|null
  33.      */
  34.     protected $shippingMethods;
  35.     public function getTaxRate(): float
  36.     {
  37.         return $this->taxRate;
  38.     }
  39.     public function setTaxRate(float $taxRate): void
  40.     {
  41.         $this->taxRate $taxRate;
  42.     }
  43.     public function getName(): string
  44.     {
  45.         return $this->name;
  46.     }
  47.     public function setName(string $name): void
  48.     {
  49.         $this->name $name;
  50.     }
  51.     public function getProducts(): ?ProductCollection
  52.     {
  53.         return $this->products;
  54.     }
  55.     public function setProducts(ProductCollection $products): void
  56.     {
  57.         $this->products $products;
  58.     }
  59.     public function getCustomFields(): ?array
  60.     {
  61.         return $this->customFields;
  62.     }
  63.     public function setCustomFields(?array $customFields): void
  64.     {
  65.         $this->customFields $customFields;
  66.     }
  67.     public function getRules(): ?TaxRuleCollection
  68.     {
  69.         return $this->rules;
  70.     }
  71.     public function setRules(TaxRuleCollection $rules): void
  72.     {
  73.         $this->rules $rules;
  74.     }
  75.     public function getShippingMethods(): ?ShippingMethodCollection
  76.     {
  77.         return $this->shippingMethods;
  78.     }
  79.     public function setShippingMethods(ShippingMethodCollection $shippingMethods): void
  80.     {
  81.         $this->shippingMethods $shippingMethods;
  82.     }
  83. }