<?phpnamespace PortalBundle\Entity;use Application\Sonata\MediaBundle\Entity\Media;class AnnouncementBar{ /** * @var integer */ private $id; /** * @var string */ private $text_ua_mob; /** * @var string */ private $text_ru_mob; /** * @var string */ private $text_ua_desktop; /** * @var string */ private $text_ru_desktop; /** * @var string */ private $url_ua; /** * @var string */ private $url_ru; /** * @var integer */ private $state = 1; public function getId(): int { return $this->id; } public function getTextUaMob(): ?string { return $this->text_ua_mob; } public function setTextUaMob(string $text_ua_mob): void { $this->text_ua_mob = $text_ua_mob; } public function getTextRuMob(): ?string { return $this->text_ru_mob; } public function setTextRuMob(string $text_ru_mob): void { $this->text_ru_mob = $text_ru_mob; } public function getTextMobByLocale($locale = 'ua'): string { return $locale == 'ua' ? $this->text_ua_mob : $this->text_ru_mob; } public function getTextUaDesktop(): ?string { return $this->text_ua_desktop; } public function setTextUaDesktop(string $text_ua_desktop): void { $this->text_ua_desktop = $text_ua_desktop; } public function getTextRuDesktop(): ?string { return $this->text_ru_desktop; } public function setTextRuDesktop(string $text_ru_desktop): void { $this->text_ru_desktop = $text_ru_desktop; } public function getTextDesktopByLocale($locale = 'ua'): string { return $locale == 'ua' ? $this->text_ua_desktop : $this->text_ru_desktop; } public function getUrlUa(): ?string { return $this->url_ua; } public function setUrlUa(string $url_ua): void { $this->url_ua = $url_ua; } public function getUrlRu(): ?string { return $this->url_ru; } public function getUrlByLocale($locale = 'ua'): string { return $locale == 'ua' ? $this->url_ua : $this->url_ru; } public function setUrlRu(string $url_ru): void { $this->url_ru = $url_ru; } public function getState(): bool { return (boolean) $this->state; } public function setState(int $state): void { $this->state = $state; }}