src/CoreBundle/Entity/ViDiWorker.php line 10

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use Application\Sonata\MediaBundle\Entity\Media;
  4. /**
  5.  * Worker
  6.  */
  7. class ViDiWorker
  8. {
  9.     /**
  10.      * @var integer
  11.      */
  12.     private $id;
  13.     /**
  14.      * @var string
  15.      */
  16.     private $name_ru;
  17.     /**
  18.      * @var string
  19.      */
  20.     private $name_ua;
  21.     /**
  22.      * @var integer
  23.      */
  24.     private $telegram_id;
  25.     /**
  26.      * @var string
  27.      */
  28.     private $telegram_name;
  29.     /**
  30.      * @var integer
  31.      */
  32.     private $last_chat_id;
  33.     /**
  34.      * @var Dealer
  35.      */
  36.     private $dealer;
  37.     /**
  38.      * @var string
  39.      */
  40.     private $phone_mobile;
  41.     /**
  42.      * @var string
  43.      */
  44.     private $phone_internal;
  45.     /**
  46.      * @var ViDiDepartment
  47.      */
  48.     private $department;
  49.     /**
  50.      * @var Media
  51.      */
  52.     private $photo;
  53.     /**
  54.      * @var int
  55.      */
  56.     private $callback_available;
  57.     /**
  58.      * @var smallint
  59.      */
  60.     private $position_worker;
  61.     /**
  62.      * @var array|null
  63.      */
  64.     private $show_on_pages;
  65.     /**
  66.      * @return string
  67.      */
  68.     public function __toString()
  69.     {
  70.         return (string)$this->getName();
  71.     }
  72.     /**
  73.      * Get id
  74.      *
  75.      * @return integer
  76.      */
  77.     public function getId()
  78.     {
  79.         return $this->id;
  80.     }
  81.     /**
  82.      * @param string $name_ru
  83.      * @return ViDiWorker
  84.      */
  85.     public function setNameRu($name_ru)
  86.     {
  87.         $this->name_ru $name_ru;
  88.         return $this;
  89.     }
  90.     /**
  91.      * @return string
  92.      */
  93.     public function getNameRu()
  94.     {
  95.         return $this->name_ru;
  96.     }
  97.     /**
  98.      * @param string $name_ua
  99.      * @return ViDiWorker
  100.      */
  101.     public function setNameUa($name_ua)
  102.     {
  103.         $this->name_ua $name_ua;
  104.         return $this;
  105.     }
  106.     /**
  107.      * @return string
  108.      */
  109.     public function getNameUa()
  110.     {
  111.         return $this->name_ua;
  112.     }
  113.     /**
  114.      * Set telegramId
  115.      *
  116.      * @param integer $telegramId
  117.      *
  118.      * @return ViDiWorker
  119.      */
  120.     public function setTelegramId($telegramId)
  121.     {
  122.         $this->telegram_id $telegramId;
  123.         return $this;
  124.     }
  125.     /**
  126.      * Get telegramId
  127.      *
  128.      * @return integer
  129.      */
  130.     public function getTelegramId()
  131.     {
  132.         return $this->telegram_id;
  133.     }
  134.     /**
  135.      * Set telegramName
  136.      *
  137.      * @param string $telegramName
  138.      *
  139.      * @return ViDiWorker
  140.      */
  141.     public function setTelegramName($telegramName)
  142.     {
  143.         $this->telegram_name $telegramName;
  144.         return $this;
  145.     }
  146.     /**
  147.      * Get telegramName
  148.      *
  149.      * @return string
  150.      */
  151.     public function getTelegramName()
  152.     {
  153.         return $this->telegram_name;
  154.     }
  155.     /**
  156.      * Set lastChatId
  157.      *
  158.      * @param integer $lastChatId
  159.      *
  160.      * @return ViDiWorker
  161.      */
  162.     public function setLastChatId($lastChatId)
  163.     {
  164.         $this->last_chat_id $lastChatId;
  165.         return $this;
  166.     }
  167.     /**
  168.      * Get lastChatId
  169.      *
  170.      * @return integer
  171.      */
  172.     public function getLastChatId()
  173.     {
  174.         return $this->last_chat_id;
  175.     }
  176.     /**
  177.      * Set dealer
  178.      *
  179.      * @param Dealer $dealer
  180.      *
  181.      * @return ViDiWorker
  182.      */
  183.     public function setDealer(Dealer $dealer null)
  184.     {
  185.         $this->dealer $dealer;
  186.         return $this;
  187.     }
  188.     /**
  189.      * Get dealer
  190.      *
  191.      * @return Dealer
  192.      */
  193.     public function getDealer()
  194.     {
  195.         return $this->dealer;
  196.     }
  197.     /**
  198.      * @var string
  199.      */
  200.     private $email;
  201.     /**
  202.      * @var integer
  203.      */
  204.     private $position;
  205.     /**
  206.      * Set email
  207.      *
  208.      * @param string $email
  209.      *
  210.      * @return ViDiWorker
  211.      */
  212.     public function setEmail($email)
  213.     {
  214.         $this->email $email;
  215.         return $this;
  216.     }
  217.     /**
  218.      * Get email
  219.      *
  220.      * @return string
  221.      */
  222.     public function getEmail()
  223.     {
  224.         return $this->email;
  225.     }
  226.     /**
  227.      * Set position
  228.      *
  229.      * @param integer $position
  230.      *
  231.      * @return ViDiWorker
  232.      */
  233.     public function setPosition($position)
  234.     {
  235.         $this->position $position;
  236.         return $this;
  237.     }
  238.     /**
  239.      * Get position
  240.      *
  241.      * @return integer
  242.      */
  243.     public function getPosition()
  244.     {
  245.         return $this->position;
  246.     }
  247.     /**
  248.      * @var string
  249.      */
  250.     private $token;
  251.     /**
  252.      * Set token
  253.      *
  254.      * @param string $token
  255.      *
  256.      * @return ViDiWorker
  257.      */
  258.     public function setToken($token)
  259.     {
  260.         $this->token $token;
  261.         return $this;
  262.     }
  263.     /**
  264.      * Get token
  265.      *
  266.      * @return string
  267.      */
  268.     public function getToken()
  269.     {
  270.         return $this->token;
  271.     }
  272.     /**
  273.      * @param string $phone_internal
  274.      * @return ViDiWorker
  275.      */
  276.     public function setPhoneInternal($phone_internal)
  277.     {
  278.         $this->phone_internal $phone_internal;
  279.         return $this;
  280.     }
  281.     /**
  282.      * @return string
  283.      */
  284.     public function getPhoneInternal()
  285.     {
  286.         return $this->phone_internal;
  287.     }
  288.     /**
  289.      * @param string $phone_mobile
  290.      * @return ViDiWorker
  291.      */
  292.     public function setPhoneMobile($phone_mobile)
  293.     {
  294.         $this->phone_mobile $phone_mobile;
  295.         return $this;
  296.     }
  297.     /**
  298.      * @return string
  299.      */
  300.     public function getPhoneMobile()
  301.     {
  302.         return $this->phone_mobile;
  303.     }
  304.     /**
  305.      * @param ViDiDepartment $department
  306.      * @return ViDiWorker
  307.      */
  308.     public function setDepartment(ViDiDepartment $department)
  309.     {
  310.         $this->department $department;
  311.         return $this;
  312.     }
  313.     /**
  314.      * @return ViDiDepartment
  315.      */
  316.     public function getDepartment()
  317.     {
  318.         return $this->department;
  319.     }
  320.     /**
  321.      * @param string $locale
  322.      * @return string
  323.      */
  324.     public function getName($locale 'ru')
  325.     {
  326.         return $locale === 'ua' $this->getNameUa() : $this->getNameRu();
  327.     }
  328.     /**
  329.      * @param Media $photo
  330.      * @return ViDiWorker
  331.      */
  332.     public function setPhoto($photo)
  333.     {
  334.         $this->photo $photo;
  335.         return $this;
  336.     }
  337.     /**
  338.      * @return Media
  339.      */
  340.     public function getPhoto()
  341.     {
  342.         return $this->photo;
  343.     }
  344.     /**
  345.      * @param int $callback_available
  346.      * @return ViDiWorker
  347.      */
  348.     public function setCallbackAvailable($callback_available)
  349.     {
  350.         $this->callback_available $callback_available;
  351.         return $this;
  352.     }
  353.     /**
  354.      * @return int
  355.      */
  356.     public function getCallbackAvailable()
  357.     {
  358.         return $this->callback_available;
  359.     }
  360.     /**
  361.      * Set sort
  362.      *
  363.      * @param integer $position_worker
  364.      *
  365.      * @return ViDiWorker
  366.      */
  367.     public function setPositionWorker($position_worker)
  368.     {
  369.         $this->position_worker $position_worker;
  370.         return $this;
  371.     }
  372.     /**
  373.      * Get sort
  374.      *
  375.      * @return integer
  376.      */
  377.     public function getPositionWorker()
  378.     {
  379.         return $this->position_worker;
  380.     }
  381.     /**
  382.      * @var boolean
  383.      */
  384.     private $additional_page_available false;
  385.     /**
  386.      * Set additionalPageAvailable
  387.      *
  388.      * @param boolean $additionalPageAvailable
  389.      *
  390.      * @return ViDiWorker
  391.      */
  392.     public function setAdditionalPageAvailable($additionalPageAvailable)
  393.     {
  394.         $this->additional_page_available $additionalPageAvailable;
  395.         return $this;
  396.     }
  397.     /**
  398.      * Get additionalPageAvailable
  399.      *
  400.      * @return boolean
  401.      */
  402.     public function getAdditionalPageAvailable()
  403.     {
  404.         return $this->additional_page_available;
  405.     }
  406.     public function getShowOnPages(): ?array
  407.     {
  408.         return $this->show_on_pages;
  409.     }
  410.     public function setShowOnPages(?array $showOnPages): ViDiWorker
  411.     {
  412.         $this->show_on_pages $showOnPages;
  413.         return $this;
  414.     }
  415. }