vendor/shopware/core/System/Locale/LocaleEntity.php line 12

Open in your IDE?
  1. <?php declare(strict_types=1);
  2. namespace Shopware\Core\System\Locale;
  3. use Shopware\Core\Framework\DataAbstractionLayer\Entity;
  4. use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
  5. use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
  6. use Shopware\Core\System\Language\LanguageCollection;
  7. use Shopware\Core\System\Locale\Aggregate\LocaleTranslation\LocaleTranslationCollection;
  8. use Shopware\Core\System\User\UserCollection;
  9. class LocaleEntity extends Entity
  10. {
  11.     use EntityIdTrait;
  12.     use EntityCustomFieldsTrait;
  13.     /**
  14.      * @var string
  15.      */
  16.     protected $code;
  17.     /**
  18.      * @var string|null
  19.      */
  20.     protected $name;
  21.     /**
  22.      * @var string|null
  23.      */
  24.     protected $territory;
  25.     /**
  26.      * @var LocaleTranslationCollection|null
  27.      */
  28.     protected $translations;
  29.     /**
  30.      * @var UserCollection|null
  31.      */
  32.     protected $users;
  33.     /**
  34.      * @var LanguageCollection|null
  35.      */
  36.     protected $languages;
  37.     public function getCode(): string
  38.     {
  39.         return $this->code;
  40.     }
  41.     public function setCode(string $code): void
  42.     {
  43.         $this->code $code;
  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 getTerritory(): ?string
  54.     {
  55.         return $this->territory;
  56.     }
  57.     public function setTerritory(?string $territory): void
  58.     {
  59.         $this->territory $territory;
  60.     }
  61.     public function getTranslations(): ?LocaleTranslationCollection
  62.     {
  63.         return $this->translations;
  64.     }
  65.     public function setTranslations(LocaleTranslationCollection $translations): void
  66.     {
  67.         $this->translations $translations;
  68.     }
  69.     public function getUsers(): ?UserCollection
  70.     {
  71.         return $this->users;
  72.     }
  73.     public function setUsers(UserCollection $users): void
  74.     {
  75.         $this->users $users;
  76.     }
  77.     public function getLanguages(): ?LanguageCollection
  78.     {
  79.         return $this->languages;
  80.     }
  81.     public function setLanguages(LanguageCollection $languages): void
  82.     {
  83.         $this->languages $languages;
  84.     }
  85. }