vendor/shopware/core/System/Currency/CurrencyEntity.php line 18

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\System\Currency;
  3. use Shopware\Core\Checkout\Order\OrderCollection;
  4. use Shopware\Core\Checkout\Promotion\Aggregate\PromotionDiscountPrice\PromotionDiscountPriceCollection;
  5. use Shopware\Core\Checkout\Shipping\Aggregate\ShippingMethodPrice\ShippingMethodPriceCollection;
  6. use Shopware\Core\Content\ProductExport\ProductExportCollection;
  7. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  8. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  9. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  10. use Shopware\Core\Framework\DataAbstractionLayer\Pricing\CashRoundingConfig;
  11. use Shopware\Core\System\Currency\Aggregate\CurrencyCountryRounding\CurrencyCountryRoundingCollection;
  12. use Shopware\Core\System\Currency\Aggregate\CurrencyTranslation\CurrencyTranslationCollection;
  13. use Shopware\Core\System\SalesChannel\Aggregate\SalesChannelDomain\SalesChannelDomainCollection;
  14. use Shopware\Core\System\SalesChannel\SalesChannelCollection;
  15. class CurrencyEntity extends Entity
  16. {
  17.     use EntityIdTrait;
  18.     use EntityCustomFieldsTrait;
  19.     /**
  20.      * @var string
  21.      */
  22.     protected $isoCode;
  23.     /**
  24.      * @var float
  25.      */
  26.     protected $factor;
  27.     /**
  28.      * @var string
  29.      */
  30.     protected $symbol;
  31.     /**
  32.      * @var string|null
  33.      */
  34.     protected $shortName;
  35.     /**
  36.      * @var string|null
  37.      */
  38.     protected $name;
  39.     /**
  40.      * @var int
  41.      */
  42.     protected $position;
  43.     /**
  44.      * @var CurrencyTranslationCollection|null
  45.      */
  46.     protected $translations;
  47.     /**
  48.      * @var OrderCollection|null
  49.      */
  50.     protected $orders;
  51.     /**
  52.      * @var SalesChannelCollection|null
  53.      */
  54.     protected $salesChannels;
  55.     /**
  56.      * @var SalesChannelCollection|null
  57.      */
  58.     protected $salesChannelDefaultAssignments;
  59.     /**
  60.      * @var SalesChannelDomainCollection|null
  61.      */
  62.     protected $salesChannelDomains;
  63.     /**
  64.      * @var ShippingMethodPriceCollection|null
  65.      */
  66.     protected $shippingMethodPrices;
  67.     /**
  68.      * @var PromotionDiscountPriceCollection
  69.      */
  70.     protected $promotionDiscountPrices;
  71.     /**
  72.      * @var bool|null
  73.      */
  74.     protected $isSystemDefault;
  75.     /**
  76.      * @var ProductExportCollection|null
  77.      */
  78.     protected $productExports;
  79.     /**
  80.      * @var CurrencyCountryRoundingCollection|null
  81.      */
  82.     protected $countryRoundings;
  83.     /**
  84.      * @var CashRoundingConfig
  85.      */
  86.     protected $itemRounding;
  87.     /**
  88.      * @var CashRoundingConfig
  89.      */
  90.     protected $totalRounding;
  91.     /**
  92.      * @var float|null
  93.      */
  94.     protected $taxFreeFrom;
  95.     public function getIsoCode(): string
  96.     {
  97.         return $this->isoCode;
  98.     }
  99.     public function setIsoCode(string $isoCode): void
  100.     {
  101.         $this->isoCode $isoCode;
  102.     }
  103.     public function getFactor(): float
  104.     {
  105.         return $this->factor;
  106.     }
  107.     public function setFactor(float $factor): void
  108.     {
  109.         $this->factor $factor;
  110.     }
  111.     public function getSymbol(): string
  112.     {
  113.         return $this->symbol;
  114.     }
  115.     public function setSymbol(string $symbol): void
  116.     {
  117.         $this->symbol $symbol;
  118.     }
  119.     public function getShortName(): ?string
  120.     {
  121.         return $this->shortName;
  122.     }
  123.     public function setShortName(?string $shortName): void
  124.     {
  125.         $this->shortName $shortName;
  126.     }
  127.     public function getName(): ?string
  128.     {
  129.         return $this->name;
  130.     }
  131.     public function setName(?string $name): void
  132.     {
  133.         $this->name $name;
  134.     }
  135.     public function getPosition(): int
  136.     {
  137.         return $this->position;
  138.     }
  139.     public function setPosition(int $position): void
  140.     {
  141.         $this->position $position;
  142.     }
  143.     public function getTranslations(): ?CurrencyTranslationCollection
  144.     {
  145.         return $this->translations;
  146.     }
  147.     public function setTranslations(CurrencyTranslationCollection $translations): void
  148.     {
  149.         $this->translations $translations;
  150.     }
  151.     public function getOrders(): ?OrderCollection
  152.     {
  153.         return $this->orders;
  154.     }
  155.     public function setOrders(OrderCollection $orders): void
  156.     {
  157.         $this->orders $orders;
  158.     }
  159.     public function getSalesChannels(): ?SalesChannelCollection
  160.     {
  161.         return $this->salesChannels;
  162.     }
  163.     public function setSalesChannels(SalesChannelCollection $salesChannels): void
  164.     {
  165.         $this->salesChannels $salesChannels;
  166.     }
  167.     public function getSalesChannelDefaultAssignments(): ?SalesChannelCollection
  168.     {
  169.         return $this->salesChannelDefaultAssignments;
  170.     }
  171.     public function setSalesChannelDefaultAssignments(SalesChannelCollection $salesChannelDefaultAssignments): void
  172.     {
  173.         $this->salesChannelDefaultAssignments $salesChannelDefaultAssignments;
  174.     }
  175.     public function getSalesChannelDomains(): ?SalesChannelDomainCollection
  176.     {
  177.         return $this->salesChannelDomains;
  178.     }
  179.     public function setSalesChannelDomains(SalesChannelDomainCollection $salesChannelDomains): void
  180.     {
  181.         $this->salesChannelDomains $salesChannelDomains;
  182.     }
  183.     public function getShippingMethodPrices(): ?ShippingMethodPriceCollection
  184.     {
  185.         return $this->shippingMethodPrices;
  186.     }
  187.     public function setShippingMethodPrices(ShippingMethodPriceCollection $shippingMethodPrices): void
  188.     {
  189.         $this->shippingMethodPrices $shippingMethodPrices;
  190.     }
  191.     public function getIsSystemDefault(): ?bool
  192.     {
  193.         return $this->isSystemDefault;
  194.     }
  195.     public function setIsSystemDefault(bool $isSystemDefault): void
  196.     {
  197.         $this->isSystemDefault $isSystemDefault;
  198.     }
  199.     public function getPromotionDiscountPrices(): ?PromotionDiscountPriceCollection
  200.     {
  201.         return $this->promotionDiscountPrices;
  202.     }
  203.     public function setPromotionDiscountPrices(PromotionDiscountPriceCollection $promotionDiscountPrices): void
  204.     {
  205.         $this->promotionDiscountPrices $promotionDiscountPrices;
  206.     }
  207.     public function getProductExports(): ?ProductExportCollection
  208.     {
  209.         return $this->productExports;
  210.     }
  211.     public function setProductExports(ProductExportCollection $productExports): void
  212.     {
  213.         $this->productExports $productExports;
  214.     }
  215.     public function getCountryRoundings(): ?CurrencyCountryRoundingCollection
  216.     {
  217.         return $this->countryRoundings;
  218.     }
  219.     public function setCountryRoundings(CurrencyCountryRoundingCollection $countryRoundings): void
  220.     {
  221.         $this->countryRoundings $countryRoundings;
  222.     }
  223.     public function getItemRounding(): CashRoundingConfig
  224.     {
  225.         return $this->itemRounding;
  226.     }
  227.     public function setItemRounding(CashRoundingConfig $itemRounding): void
  228.     {
  229.         $this->itemRounding $itemRounding;
  230.     }
  231.     public function getTotalRounding(): CashRoundingConfig
  232.     {
  233.         return $this->totalRounding;
  234.     }
  235.     public function setTotalRounding(CashRoundingConfig $totalRounding): void
  236.     {
  237.         $this->totalRounding $totalRounding;
  238.     }
  239.     /**
  240.      * @deprecated tag:v6.5.0 - Use `itemRounding.decimals` or `totalRounding.decimals`
  241.      */
  242.     public function getDecimalPrecision(): int
  243.     {
  244.         return $this->itemRounding->getDecimals();
  245.     }
  246.     public function getTaxFreeFrom(): ?float
  247.     {
  248.         return $this->taxFreeFrom;
  249.     }
  250.     public function setTaxFreeFrom(?float $taxFreeFrom): void
  251.     {
  252.         $this->taxFreeFrom $taxFreeFrom;
  253.     }
  254. }