<?php declare(strict_types=1);
namespace Shopware\Core\System\Locale;
use Shopware\Core\Framework\DataAbstractionLayer\Entity;
use Shopware\Core\Framework\DataAbstractionLayer\EntityCustomFieldsTrait;
use Shopware\Core\Framework\DataAbstractionLayer\EntityIdTrait;
use Shopware\Core\System\Language\LanguageCollection;
use Shopware\Core\System\Locale\Aggregate\LocaleTranslation\LocaleTranslationCollection;
use Shopware\Core\System\User\UserCollection;
class LocaleEntity extends Entity
{
use EntityIdTrait;
use EntityCustomFieldsTrait;
/**
* @var string
*/
protected $code;
/**
* @var string|null
*/
protected $name;
/**
* @var string|null
*/
protected $territory;
/**
* @var LocaleTranslationCollection|null
*/
protected $translations;
/**
* @var UserCollection|null
*/
protected $users;
/**
* @var LanguageCollection|null
*/
protected $languages;
public function getCode(): string
{
return $this->code;
}
public function setCode(string $code): void
{
$this->code = $code;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): void
{
$this->name = $name;
}
public function getTerritory(): ?string
{
return $this->territory;
}
public function setTerritory(?string $territory): void
{
$this->territory = $territory;
}
public function getTranslations(): ?LocaleTranslationCollection
{
return $this->translations;
}
public function setTranslations(LocaleTranslationCollection $translations): void
{
$this->translations = $translations;
}
public function getUsers(): ?UserCollection
{
return $this->users;
}
public function setUsers(UserCollection $users): void
{
$this->users = $users;
}
public function getLanguages(): ?LanguageCollection
{
return $this->languages;
}
public function setLanguages(LanguageCollection $languages): void
{
$this->languages = $languages;
}
}