src/PortalBundle/Entity/AnnouncementBar.php line 7

Open in your IDE?
  1. <?php
  2. namespace PortalBundle\Entity;
  3. use Application\Sonata\MediaBundle\Entity\Media;
  4. class AnnouncementBar
  5. {
  6.     /**
  7.      * @var integer
  8.      */
  9.     private $id;
  10.     /**
  11.      * @var string
  12.      */
  13.     private $text_ua_mob;
  14.     /**
  15.      * @var string
  16.      */
  17.     private $text_ru_mob;
  18.     /**
  19.      * @var string
  20.      */
  21.     private $text_ua_desktop;
  22.     /**
  23.      * @var string
  24.      */
  25.     private $text_ru_desktop;
  26.     /**
  27.      * @var string
  28.      */
  29.     private $url_ua;
  30.     /**
  31.      * @var string
  32.      */
  33.     private $url_ru;
  34.     /**
  35.      * @var integer
  36.      */
  37.     private $state 1;
  38.     public function getId(): int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getTextUaMob(): ?string
  43.     {
  44.         return $this->text_ua_mob;
  45.     }
  46.     public function setTextUaMob(string $text_ua_mob): void
  47.     {
  48.         $this->text_ua_mob $text_ua_mob;
  49.     }
  50.     public function getTextRuMob(): ?string
  51.     {
  52.         return $this->text_ru_mob;
  53.     }
  54.     public function setTextRuMob(string $text_ru_mob): void
  55.     {
  56.         $this->text_ru_mob $text_ru_mob;
  57.     }
  58.     public function getTextMobByLocale($locale 'ua'): string
  59.     {
  60.         return $locale == 'ua' $this->text_ua_mob $this->text_ru_mob;
  61.     }
  62.     public function getTextUaDesktop(): ?string
  63.     {
  64.         return $this->text_ua_desktop;
  65.     }
  66.     public function setTextUaDesktop(string $text_ua_desktop): void
  67.     {
  68.         $this->text_ua_desktop $text_ua_desktop;
  69.     }
  70.     public function getTextRuDesktop(): ?string
  71.     {
  72.         return $this->text_ru_desktop;
  73.     }
  74.     public function setTextRuDesktop(string $text_ru_desktop): void
  75.     {
  76.         $this->text_ru_desktop $text_ru_desktop;
  77.     }
  78.     public function getTextDesktopByLocale($locale 'ua'): string
  79.     {
  80.         return $locale == 'ua' $this->text_ua_desktop $this->text_ru_desktop;
  81.     }
  82.     public function getUrlUa(): ?string
  83.     {
  84.         return $this->url_ua;
  85.     }
  86.     public function setUrlUa(string $url_ua): void
  87.     {
  88.         $this->url_ua $url_ua;
  89.     }
  90.     public function getUrlRu(): ?string
  91.     {
  92.         return $this->url_ru;
  93.     }
  94.     public function getUrlByLocale($locale 'ua'): string
  95.     {
  96.         return $locale == 'ua' $this->url_ua $this->url_ru;
  97.     }
  98.     public function setUrlRu(string $url_ru): void
  99.     {
  100.         $this->url_ru $url_ru;
  101.     }
  102.     public function getState(): bool
  103.     {
  104.         return (boolean) $this->state;
  105.     }
  106.     public function setState(int $state): void
  107.     {
  108.         $this->state $state;
  109.     }
  110. }