vendor/shopware/core/System/Country/CountryEntity.php line 14

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\System\Country;
  3. use Shopware\Core\Checkout\Customer\Aggregate\CustomerAddress\CustomerAddressCollection;
  4. use Shopware\Core\Checkout\Order\Aggregate\OrderAddress\OrderAddressCollection;
  5. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  6. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  7. use Shopware\Core\System\Country\Aggregate\CountryState\CountryStateCollection;
  8. use Shopware\Core\System\Country\Aggregate\CountryTranslation\CountryTranslationCollection;
  9. use Shopware\Core\System\SalesChannel\SalesChannelCollection;
  10. use Shopware\Core\System\Tax\Aggregate\TaxRule\TaxRuleCollection;
  11. class CountryEntity extends Entity
  12. {
  13.     use EntityIdTrait;
  14.     /**
  15.      * @var string|null
  16.      */
  17.     protected $name;
  18.     /**
  19.      * @var string|null
  20.      */
  21.     protected $iso;
  22.     /**
  23.      * @var int
  24.      */
  25.     protected $position;
  26.     /**
  27.      * @var bool
  28.      */
  29.     protected $taxFree;
  30.     /**
  31.      * @var bool
  32.      */
  33.     protected $active;
  34.     /**
  35.      * @var bool
  36.      */
  37.     protected $shippingAvailable;
  38.     /**
  39.      * @var string|null
  40.      */
  41.     protected $iso3;
  42.     /**
  43.      * @var bool
  44.      */
  45.     protected $displayStateInRegistration;
  46.     /**
  47.      * @var bool
  48.      */
  49.     protected $forceStateInRegistration;
  50.     /**
  51.      * @var CountryStateCollection|null
  52.      */
  53.     protected $states;
  54.     /**
  55.      * @var CountryTranslationCollection|null
  56.      */
  57.     protected $translations;
  58.     /**
  59.      * @var OrderAddressCollection|null
  60.      */
  61.     protected $orderAddresses;
  62.     /**
  63.      * @var CustomerAddressCollection|null
  64.      */
  65.     protected $customerAddresses;
  66.     /**
  67.      * @var SalesChannelCollection|null
  68.      */
  69.     protected $salesChannelDefaultAssignments;
  70.     /**
  71.      * @var SalesChannelCollection|null
  72.      */
  73.     protected $salesChannels;
  74.     /**
  75.      * @var array|null
  76.      */
  77.     protected $customFields;
  78.     /**
  79.      * @var TaxRuleCollection|null
  80.      */
  81.     protected $taxRules;
  82.     public function getName(): ?string
  83.     {
  84.         return $this->name;
  85.     }
  86.     public function setName(?string $name): void
  87.     {
  88.         $this->name $name;
  89.     }
  90.     public function getIso(): ?string
  91.     {
  92.         return $this->iso;
  93.     }
  94.     public function setIso(?string $iso): void
  95.     {
  96.         $this->iso $iso;
  97.     }
  98.     public function getPosition(): int
  99.     {
  100.         return $this->position;
  101.     }
  102.     public function setPosition(int $position): void
  103.     {
  104.         $this->position $position;
  105.     }
  106.     public function getTaxFree(): bool
  107.     {
  108.         return $this->taxFree;
  109.     }
  110.     public function setTaxFree(bool $taxFree): void
  111.     {
  112.         $this->taxFree $taxFree;
  113.     }
  114.     public function getActive(): bool
  115.     {
  116.         return $this->active;
  117.     }
  118.     public function setActive(bool $active): void
  119.     {
  120.         $this->active $active;
  121.     }
  122.     public function getShippingAvailable(): bool
  123.     {
  124.         return $this->shippingAvailable;
  125.     }
  126.     public function setShippingAvailable(bool $shippingAvailable): void
  127.     {
  128.         $this->shippingAvailable $shippingAvailable;
  129.     }
  130.     public function getIso3(): ?string
  131.     {
  132.         return $this->iso3;
  133.     }
  134.     public function setIso3(?string $iso3): void
  135.     {
  136.         $this->iso3 $iso3;
  137.     }
  138.     public function getDisplayStateInRegistration(): bool
  139.     {
  140.         return $this->displayStateInRegistration;
  141.     }
  142.     public function setDisplayStateInRegistration(bool $displayStateInRegistration): void
  143.     {
  144.         $this->displayStateInRegistration $displayStateInRegistration;
  145.     }
  146.     public function getForceStateInRegistration(): bool
  147.     {
  148.         return $this->forceStateInRegistration;
  149.     }
  150.     public function setForceStateInRegistration(bool $forceStateInRegistration): void
  151.     {
  152.         $this->forceStateInRegistration $forceStateInRegistration;
  153.     }
  154.     public function getStates(): ?CountryStateCollection
  155.     {
  156.         return $this->states;
  157.     }
  158.     public function setStates(CountryStateCollection $states): void
  159.     {
  160.         $this->states $states;
  161.     }
  162.     public function getTranslations(): ?CountryTranslationCollection
  163.     {
  164.         return $this->translations;
  165.     }
  166.     public function setTranslations(CountryTranslationCollection $translations): void
  167.     {
  168.         $this->translations $translations;
  169.     }
  170.     public function getOrderAddresses(): ?OrderAddressCollection
  171.     {
  172.         return $this->orderAddresses;
  173.     }
  174.     public function setOrderAddresses(OrderAddressCollection $orderAddresses): void
  175.     {
  176.         $this->orderAddresses $orderAddresses;
  177.     }
  178.     public function getCustomerAddresses(): ?CustomerAddressCollection
  179.     {
  180.         return $this->customerAddresses;
  181.     }
  182.     public function setCustomerAddresses(CustomerAddressCollection $customerAddresses): void
  183.     {
  184.         $this->customerAddresses $customerAddresses;
  185.     }
  186.     public function getSalesChannelDefaultAssignments(): ?SalesChannelCollection
  187.     {
  188.         return $this->salesChannelDefaultAssignments;
  189.     }
  190.     public function setSalesChannelDefaultAssignments(SalesChannelCollection $salesChannelDefaultAssignments): void
  191.     {
  192.         $this->salesChannelDefaultAssignments $salesChannelDefaultAssignments;
  193.     }
  194.     public function getSalesChannels(): ?SalesChannelCollection
  195.     {
  196.         return $this->salesChannels;
  197.     }
  198.     public function setSalesChannels(SalesChannelCollection $salesChannels): void
  199.     {
  200.         $this->salesChannels $salesChannels;
  201.     }
  202.     public function getCustomFields(): ?array
  203.     {
  204.         return $this->customFields;
  205.     }
  206.     public function setCustomFields(?array $customFields): void
  207.     {
  208.         $this->customFields $customFields;
  209.     }
  210.     public function getTaxRules(): ?TaxRuleCollection
  211.     {
  212.         return $this->taxRules;
  213.     }
  214.     public function setTaxRules(TaxRuleCollection $taxRules): void
  215.     {
  216.         $this->taxRules $taxRules;
  217.     }
  218.     public function getApiAlias(): string
  219.     {
  220.         return 'country';
  221.     }
  222. }