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

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\EntityIdTrait;
  9. use Shopware\Core\System\Currency\Aggregate\CurrencyTranslation\CurrencyTranslationCollection;
  10. use Shopware\Core\System\SalesChannel\Aggregate\SalesChannelDomain\SalesChannelDomainCollection;
  11. use Shopware\Core\System\SalesChannel\SalesChannelCollection;
  12. class CurrencyEntity extends Entity
  13. {
  14.     use EntityIdTrait;
  15.     /**
  16.      * @var string
  17.      */
  18.     protected $isoCode;
  19.     /**
  20.      * @var float
  21.      */
  22.     protected $factor;
  23.     /**
  24.      * @var string
  25.      */
  26.     protected $symbol;
  27.     /**
  28.      * @var string|null
  29.      */
  30.     protected $shortName;
  31.     /**
  32.      * @var string|null
  33.      */
  34.     protected $name;
  35.     /**
  36.      * @var int
  37.      */
  38.     protected $position;
  39.     /**
  40.      * @var int
  41.      */
  42.     protected $decimalPrecision;
  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 array|null
  65.      */
  66.     protected $customFields;
  67.     /**
  68.      * @var ShippingMethodPriceCollection|null
  69.      */
  70.     protected $shippingMethodPrices;
  71.     /**
  72.      * @var PromotionDiscountPriceCollection
  73.      */
  74.     protected $promotionDiscountPrices;
  75.     /**
  76.      * @var bool|null
  77.      */
  78.     protected $isSystemDefault;
  79.     /**
  80.      * @var ProductExportCollection|null
  81.      */
  82.     protected $productExports;
  83.     public function getIsoCode(): string
  84.     {
  85.         return $this->isoCode;
  86.     }
  87.     public function setIsoCode(string $isoCode): void
  88.     {
  89.         $this->isoCode $isoCode;
  90.     }
  91.     public function getFactor(): float
  92.     {
  93.         return $this->factor;
  94.     }
  95.     public function setFactor(float $factor): void
  96.     {
  97.         $this->factor $factor;
  98.     }
  99.     public function getSymbol(): string
  100.     {
  101.         return $this->symbol;
  102.     }
  103.     public function setSymbol(string $symbol): void
  104.     {
  105.         $this->symbol $symbol;
  106.     }
  107.     public function getShortName(): ?string
  108.     {
  109.         return $this->shortName;
  110.     }
  111.     public function setShortName(?string $shortName): void
  112.     {
  113.         $this->shortName $shortName;
  114.     }
  115.     public function getName(): ?string
  116.     {
  117.         return $this->name;
  118.     }
  119.     public function setName(?string $name): void
  120.     {
  121.         $this->name $name;
  122.     }
  123.     public function getPosition(): int
  124.     {
  125.         return $this->position;
  126.     }
  127.     public function setPosition(int $position): void
  128.     {
  129.         $this->position $position;
  130.     }
  131.     public function getTranslations(): ?CurrencyTranslationCollection
  132.     {
  133.         return $this->translations;
  134.     }
  135.     public function setTranslations(CurrencyTranslationCollection $translations): void
  136.     {
  137.         $this->translations $translations;
  138.     }
  139.     public function getOrders(): ?OrderCollection
  140.     {
  141.         return $this->orders;
  142.     }
  143.     public function setOrders(OrderCollection $orders): void
  144.     {
  145.         $this->orders $orders;
  146.     }
  147.     public function getSalesChannels(): ?SalesChannelCollection
  148.     {
  149.         return $this->salesChannels;
  150.     }
  151.     public function setSalesChannels(SalesChannelCollection $salesChannels): void
  152.     {
  153.         $this->salesChannels $salesChannels;
  154.     }
  155.     public function getSalesChannelDefaultAssignments(): ?SalesChannelCollection
  156.     {
  157.         return $this->salesChannelDefaultAssignments;
  158.     }
  159.     public function setSalesChannelDefaultAssignments(SalesChannelCollection $salesChannelDefaultAssignments): void
  160.     {
  161.         $this->salesChannelDefaultAssignments $salesChannelDefaultAssignments;
  162.     }
  163.     public function getSalesChannelDomains(): ?SalesChannelDomainCollection
  164.     {
  165.         return $this->salesChannelDomains;
  166.     }
  167.     public function setSalesChannelDomains(SalesChannelDomainCollection $salesChannelDomains): void
  168.     {
  169.         $this->salesChannelDomains $salesChannelDomains;
  170.     }
  171.     public function getCustomFields(): ?array
  172.     {
  173.         return $this->customFields;
  174.     }
  175.     public function setCustomFields(?array $customFields): void
  176.     {
  177.         $this->customFields $customFields;
  178.     }
  179.     public function getDecimalPrecision(): int
  180.     {
  181.         return $this->decimalPrecision;
  182.     }
  183.     public function setDecimalPrecision(int $decimalPrecision): void
  184.     {
  185.         $this->decimalPrecision $decimalPrecision;
  186.     }
  187.     public function getShippingMethodPrices(): ?ShippingMethodPriceCollection
  188.     {
  189.         return $this->shippingMethodPrices;
  190.     }
  191.     public function setShippingMethodPrices(ShippingMethodPriceCollection $shippingMethodPrices): void
  192.     {
  193.         $this->shippingMethodPrices $shippingMethodPrices;
  194.     }
  195.     public function getIsSystemDefault(): ?bool
  196.     {
  197.         return $this->isSystemDefault;
  198.     }
  199.     public function setIsSystemDefault(bool $isSystemDefault): void
  200.     {
  201.         $this->isSystemDefault $isSystemDefault;
  202.     }
  203.     public function getPromotionDiscountPrices(): ?PromotionDiscountPriceCollection
  204.     {
  205.         return $this->promotionDiscountPrices;
  206.     }
  207.     public function setPromotionDiscountPrices(PromotionDiscountPriceCollection $promotionDiscountPrices): void
  208.     {
  209.         $this->promotionDiscountPrices $promotionDiscountPrices;
  210.     }
  211.     public function getProductExports(): ?ProductExportCollection
  212.     {
  213.         return $this->productExports;
  214.     }
  215.     public function setProductExports(ProductExportCollection $productExports): void
  216.     {
  217.         $this->productExports $productExports;
  218.     }
  219.     public function getApiAlias(): string
  220.     {
  221.         return 'currency';
  222.     }
  223. }