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

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\Framework\Log\Package;
  7. use Shopware\Core\System\Language\LanguageCollection;
  8. use Shopware\Core\System\Locale\Aggregate\LocaleTranslation\LocaleTranslationCollection;
  9. use Shopware\Core\System\User\UserCollection;
  10. #[Package('system-settings')]
  11. class LocaleEntity extends Entity
  12. {
  13.     use EntityIdTrait;
  14.     use EntityCustomFieldsTrait;
  15.     /**
  16.      * @var string
  17.      */
  18.     protected $code;
  19.     /**
  20.      * @var string|null
  21.      */
  22.     protected $name;
  23.     /**
  24.      * @var string|null
  25.      */
  26.     protected $territory;
  27.     /**
  28.      * @var LocaleTranslationCollection|null
  29.      */
  30.     protected $translations;
  31.     /**
  32.      * @var UserCollection|null
  33.      */
  34.     protected $users;
  35.     /**
  36.      * @var LanguageCollection|null
  37.      */
  38.     protected $languages;
  39.     public function getCode(): string
  40.     {
  41.         return $this->code;
  42.     }
  43.     public function setCode(string $code): void
  44.     {
  45.         $this->code $code;
  46.     }
  47.     public function getName(): ?string
  48.     {
  49.         return $this->name;
  50.     }
  51.     public function setName(?string $name): void
  52.     {
  53.         $this->name $name;
  54.     }
  55.     public function getTerritory(): ?string
  56.     {
  57.         return $this->territory;
  58.     }
  59.     public function setTerritory(?string $territory): void
  60.     {
  61.         $this->territory $territory;
  62.     }
  63.     public function getTranslations(): ?LocaleTranslationCollection
  64.     {
  65.         return $this->translations;
  66.     }
  67.     public function setTranslations(LocaleTranslationCollection $translations): void
  68.     {
  69.         $this->translations $translations;
  70.     }
  71.     public function getUsers(): ?UserCollection
  72.     {
  73.         return $this->users;
  74.     }
  75.     public function setUsers(UserCollection $users): void
  76.     {
  77.         $this->users $users;
  78.     }
  79.     public function getLanguages(): ?LanguageCollection
  80.     {
  81.         return $this->languages;
  82.     }
  83.     public function setLanguages(LanguageCollection $languages): void
  84.     {
  85.         $this->languages $languages;
  86.     }
  87. }