src/CoreBundle/Entity/Dealer.php line 17

Open in your IDE?
  1. <?php
  2. namespace CoreBundle\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use DcSiteBundle\Entity\Vacancy;
  5. use Application\Sonata\MediaBundle\Entity\Media;
  6. use DcSiteBundle\Entity\ServiceWork;
  7. use DcSiteBundle\Entity\OperatingManuals;
  8. use Doctrine\Common\Collections\Collection;
  9. use Application\Sonata\MediaBundle\Entity\Gallery;
  10. use DcSiteBundle\Entity\Faq;
  11. /**
  12.  * Dealer
  13.  */
  14. class Dealer
  15. {
  16.     /**
  17.      * @var integer
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      */
  23.     private $name;
  24.     /**
  25.      * @var Collection
  26.      */
  27.     private $users;
  28.     /**
  29.      * @var string
  30.      */
  31.     private $unique_id;
  32.     /**
  33.      * @var string
  34.      */
  35.     private $domain;
  36.     /**
  37.      * @var Brand
  38.      */
  39.     private $brand;
  40.     /**
  41.      * @var string
  42.      */
  43.     private $official_name_ru;
  44.     /**
  45.      * @var string
  46.      */
  47.     private $official_name_ua;
  48.     /**
  49.      * @var string
  50.      */
  51.     private $city_name_ru;
  52.     /**
  53.      * @var string
  54.      */
  55.     private $city_name_ua;
  56.     /**
  57.      * @var string
  58.      */
  59.     private $address_service_ru;
  60.     /**
  61.      * @var string
  62.      */
  63.     private $address_service_ua;
  64.     /**
  65.      * @var string
  66.      */
  67.     private $official_address_ru;
  68.     /**
  69.      * @var string
  70.      */
  71.     private $official_address_ua;
  72.     /**
  73.      * @var string
  74.      */
  75.     private $edrpou;
  76.     /**
  77.      * @var string
  78.      */
  79.     private $seo_url;
  80.     /**
  81.      * @var string
  82.      */
  83.     private $iban;
  84.     /**
  85.      * @var string
  86.      */
  87.     private $facilities;
  88.     /**
  89.      * @var string
  90.      */
  91.     private $description_ru;
  92.     /**
  93.      * @var string
  94.      */
  95.     private $description_ua;
  96.     /**
  97.      * @var Gallery
  98.      */
  99.     private $gallery;
  100.     /**
  101.      * @var boolean
  102.      */
  103.     private $isNightDealer;
  104.     /**
  105.      * @var string
  106.      */
  107.     private $gtm_code;
  108.     /**
  109.      * Constructor
  110.      */
  111.     public function __construct()
  112.     {
  113.         $this->users = new ArrayCollection();
  114.     }
  115.     /**
  116.      * Get id
  117.      *
  118.      * @return integer
  119.      */
  120.     public function getId()
  121.     {
  122.         return $this->id;
  123.     }
  124.     /**
  125.      * Set name
  126.      *
  127.      * @param string $name
  128.      *
  129.      * @return Dealer
  130.      */
  131.     public function setName($name)
  132.     {
  133.         $this->name $name;
  134.         return $this;
  135.     }
  136.     /**
  137.      * Get name
  138.      *
  139.      * @return string
  140.      */
  141.     public function getName()
  142.     {
  143.         return $this->name;
  144.     }
  145.     /**
  146.      * Add user
  147.      *
  148.      * @param User $user
  149.      *
  150.      * @return Dealer
  151.      */
  152.     public function addUser(User $user)
  153.     {
  154.         $this->users[] = $user;
  155.         return $this;
  156.     }
  157.     /**
  158.      * Remove user
  159.      *
  160.      * @param User $user
  161.      */
  162.     public function removeUser(User $user)
  163.     {
  164.         $this->users->removeElement($user);
  165.     }
  166.     /**
  167.      * Get users
  168.      *
  169.      * @return Collection
  170.      */
  171.     public function getUsers()
  172.     {
  173.         return $this->users;
  174.     }
  175.     /**
  176.      * Set domain
  177.      *
  178.      * @param string $domain
  179.      *
  180.      * @return Dealer
  181.      */
  182.     public function setDomain($domain)
  183.     {
  184.         $this->domain $domain;
  185.         return $this;
  186.     }
  187.     /**
  188.      * Get domain
  189.      *
  190.      * @return string
  191.      */
  192.     public function getDomain()
  193.     {
  194.         return $this->domain;
  195.     }
  196.     /**
  197.      * @var float
  198.      */
  199.     private $rate;
  200.     /**
  201.      * Set rate
  202.      *
  203.      * @param float $rate
  204.      *
  205.      * @return Dealer
  206.      */
  207.     public function setRate($rate)
  208.     {
  209.         $this->rate $rate;
  210.         return $this;
  211.     }
  212.     /**
  213.      * Get rate
  214.      *
  215.      * @return float
  216.      */
  217.     public function getRate()
  218.     {
  219.         return $this->rate;
  220.     }
  221.     /**
  222.      * @var Collection
  223.      */
  224.     private $vacancies;
  225.     /**
  226.      * Add vacancy
  227.      *
  228.      * @param Vacancy $vacancy
  229.      *
  230.      * @return Dealer
  231.      */
  232.     public function addVacancy(Vacancy $vacancy)
  233.     {
  234.         $this->vacancies[] = $vacancy;
  235.         return $this;
  236.     }
  237.     /**
  238.      * Remove vacancy
  239.      *
  240.      * @param Vacancy $vacancy
  241.      */
  242.     public function removeVacancy(Vacancy $vacancy)
  243.     {
  244.         $this->vacancies->removeElement($vacancy);
  245.     }
  246.     /**
  247.      * Get vacancies
  248.      *
  249.      * @return Collection
  250.      */
  251.     public function getVacancies()
  252.     {
  253.         return $this->vacancies;
  254.     }
  255.     /**
  256.      * Set uniqueId
  257.      *
  258.      * @param string $uniqueId
  259.      *
  260.      * @return Dealer
  261.      */
  262.     public function setUniqueId($uniqueId)
  263.     {
  264.         $this->unique_id $uniqueId;
  265.         return $this;
  266.     }
  267.     /**
  268.      * Get uniqueId
  269.      *
  270.      * @return string
  271.      */
  272.     public function getUniqueId()
  273.     {
  274.         return $this->unique_id;
  275.     }
  276.     /**
  277.      * Set brand
  278.      *
  279.      * @param Brand $brand
  280.      *
  281.      * @return Dealer
  282.      */
  283.     public function setBrand(Brand $brand null)
  284.     {
  285.         $this->brand $brand;
  286.         return $this;
  287.     }
  288.     /**
  289.      * Get brand
  290.      *
  291.      * @return Brand
  292.      */
  293.     public function getBrand()
  294.     {
  295.         return $this->brand;
  296.     }
  297.     public function __toString()
  298.     {
  299.         return $this->name;
  300.     }
  301.     /**
  302.      * @var string
  303.      */
  304.     private $address_ru;
  305.     /**
  306.      * @var string
  307.      */
  308.     private $address_ua;
  309.     /**
  310.      * Set addressRu
  311.      *
  312.      * @param string $addressRu
  313.      *
  314.      * @return Dealer
  315.      */
  316.     public function setAddressRu($addressRu)
  317.     {
  318.         $this->address_ru $addressRu;
  319.         return $this;
  320.     }
  321.     /**
  322.      * Get addressRu
  323.      *
  324.      * @return string
  325.      */
  326.     public function getAddressRu()
  327.     {
  328.         return $this->address_ru;
  329.     }
  330.     /**
  331.      * Set addressUa
  332.      *
  333.      * @param string $addressUa
  334.      *
  335.      * @return Dealer
  336.      */
  337.     public function setAddressUa($addressUa)
  338.     {
  339.         $this->address_ua $addressUa;
  340.         return $this;
  341.     }
  342.     /**
  343.      * Get addressUa
  344.      *
  345.      * @return string
  346.      */
  347.     public function getAddressUa()
  348.     {
  349.         return $this->address_ua;
  350.     }
  351.     /**
  352.      * @var string
  353.      */
  354.     private $url;
  355.     /**
  356.      * Set url
  357.      *
  358.      * @param string $url
  359.      *
  360.      * @return Dealer
  361.      */
  362.     public function setUrl($url)
  363.     {
  364.         $this->url $url;
  365.         return $this;
  366.     }
  367.     /**
  368.      * Get url
  369.      *
  370.      * @return string
  371.      */
  372.     public function getUrl()
  373.     {
  374.         return $this->url;
  375.     }
  376.     /**
  377.      * @var string
  378.      */
  379.     private $phone;
  380.     /**
  381.      * @var string
  382.      */
  383.     private $email_sale;
  384.     /**
  385.      * @var string
  386.      */
  387.     private $email_service;
  388.     /**
  389.      * Set phone
  390.      *
  391.      * @param string $phone
  392.      *
  393.      * @return Dealer
  394.      */
  395.     public function setPhone($phone)
  396.     {
  397.         $this->phone $phone;
  398.         return $this;
  399.     }
  400.     /**
  401.      * Get phone
  402.      *
  403.      * @return string
  404.      */
  405.     public function getPhone()
  406.     {
  407.         return $this->phone;
  408.     }
  409.     /**
  410.      * Set emailSale
  411.      *
  412.      * @param string $emailSale
  413.      *
  414.      * @return Dealer
  415.      */
  416.     public function setEmailSale($emailSale)
  417.     {
  418.         $this->email_sale $emailSale;
  419.         return $this;
  420.     }
  421.     /**
  422.      * Get emailSale
  423.      *
  424.      * @return string
  425.      */
  426.     public function getEmailSale()
  427.     {
  428.         return $this->email_sale;
  429.     }
  430.     /**
  431.      * Set emailService
  432.      *
  433.      * @param string $emailService
  434.      *
  435.      * @return Dealer
  436.      */
  437.     public function setEmailService($emailService)
  438.     {
  439.         $this->email_service $emailService;
  440.         return $this;
  441.     }
  442.     /**
  443.      * Get emailService
  444.      *
  445.      * @return string
  446.      */
  447.     public function getEmailService()
  448.     {
  449.         return $this->email_service;
  450.     }
  451.     /**
  452.      * @param $locale
  453.      * @return string
  454.      */
  455.     public function getAddressByLocale($locale) {
  456.         if($locale == 'ru') {
  457.             return $this->getAddressRu();
  458.         }
  459.         return $this->getAddressUa();
  460.     }
  461.     /**
  462.      * @var string
  463.      */
  464.     private $open_time;
  465.     /**
  466.      * @var string
  467.      */
  468.     private $close_time;
  469.     /**
  470.      * Set openTime
  471.      *
  472.      * @param string $openTime
  473.      *
  474.      * @return Dealer
  475.      */
  476.     public function setOpenTime($openTime)
  477.     {
  478.         $this->open_time $openTime;
  479.         return $this;
  480.     }
  481.     /**
  482.      * Get openTime
  483.      *
  484.      * @return string
  485.      */
  486.     public function getOpenTime()
  487.     {
  488.         return $this->open_time;
  489.     }
  490.     /**
  491.      * Set closeTime
  492.      *
  493.      * @param string $closeTime
  494.      *
  495.      * @return Dealer
  496.      */
  497.     public function setCloseTime($closeTime)
  498.     {
  499.         $this->close_time $closeTime;
  500.         return $this;
  501.     }
  502.     /**
  503.      * Get closeTime
  504.      *
  505.      * @return string
  506.      */
  507.     public function getCloseTime()
  508.     {
  509.         return $this->close_time;
  510.     }
  511.     /**
  512.      * @var string
  513.      */
  514.     private $lat;
  515.     /**
  516.      * @var string
  517.      */
  518.     private $lng;
  519.     /**
  520.      * Set lat
  521.      *
  522.      * @param string $lat
  523.      *
  524.      * @return Dealer
  525.      */
  526.     public function setLat($lat)
  527.     {
  528.         $this->lat $lat;
  529.         return $this;
  530.     }
  531.     /**
  532.      * Get lat
  533.      *
  534.      * @return string
  535.      */
  536.     public function getLat()
  537.     {
  538.         return $this->lat;
  539.     }
  540.     /**
  541.      * Set lng
  542.      *
  543.      * @param string $lng
  544.      *
  545.      * @return Dealer
  546.      */
  547.     public function setLng($lng)
  548.     {
  549.         $this->lng $lng;
  550.         return $this;
  551.     }
  552.     /**
  553.      * Get lng
  554.      *
  555.      * @return string
  556.      */
  557.     public function getLng()
  558.     {
  559.         return $this->lng;
  560.     }
  561.     /**
  562.      * @var string
  563.      */
  564.     private $lat_service;
  565.     /**
  566.      * @var string
  567.      */
  568.     private $lng_service;
  569.     /**
  570.      * Set lat
  571.      *
  572.      * @param string $lat
  573.      *
  574.      * @return Dealer
  575.      */
  576.     public function setLatService($lat)
  577.     {
  578.         $this->lat_service $lat;
  579.         return $this;
  580.     }
  581.     /**
  582.      * Get lat
  583.      *
  584.      * @return string
  585.      */
  586.     public function getLatService()
  587.     {
  588.         return $this->lat_service;
  589.     }
  590.     /**
  591.      * Set lng
  592.      *
  593.      * @param string $lng
  594.      *
  595.      * @return Dealer
  596.      */
  597.     public function setLngService($lng)
  598.     {
  599.         $this->lng_service $lng;
  600.         return $this;
  601.     }
  602.     /**
  603.      * Get lng
  604.      *
  605.      * @return string
  606.      */
  607.     public function getLngService()
  608.     {
  609.         return $this->lng_service;
  610.     }
  611.     /**
  612.      * @var string
  613.      */
  614.     private $crm_name;
  615.     /**
  616.      * Set crmName
  617.      *
  618.      * @param string $crmName
  619.      *
  620.      * @return Dealer
  621.      */
  622.     public function setCrmName($crmName)
  623.     {
  624.         $this->crm_name $crmName;
  625.         return $this;
  626.     }
  627.     /**
  628.      * Get crmName
  629.      *
  630.      * @return string
  631.      */
  632.     public function getCrmName()
  633.     {
  634.         return $this->crm_name;
  635.     }
  636.     /**
  637.      * @var string
  638.      */
  639.     private $ga_tracking_id;
  640.     /**
  641.      * Set gaTrackingId
  642.      *
  643.      * @param string $gaTrackingId
  644.      *
  645.      * @return Dealer
  646.      */
  647.     public function setGaTrackingId($gaTrackingId)
  648.     {
  649.         $this->ga_tracking_id $gaTrackingId;
  650.         return $this;
  651.     }
  652.     /**
  653.      * Get gaTrackingId
  654.      *
  655.      * @return string
  656.      */
  657.     public function getGaTrackingId()
  658.     {
  659.         return $this->ga_tracking_id;
  660.     }
  661.     /**
  662.      * @var string
  663.      */
  664.     private $crm_id;
  665.     /**
  666.      * Set crmId
  667.      *
  668.      * @param string $crmId
  669.      *
  670.      * @return Dealer
  671.      */
  672.     public function setCrmId($crmId)
  673.     {
  674.         $this->crm_id $crmId;
  675.         return $this;
  676.     }
  677.     /**
  678.      * Get crmId
  679.      *
  680.      * @return string
  681.      */
  682.     public function getCrmId()
  683.     {
  684.         return $this->crm_id;
  685.     }
  686.     /**
  687.      * @var float
  688.      */
  689.     private $hour_cost;
  690.     /**
  691.      * Set hourCost
  692.      *
  693.      * @param float $hourCost
  694.      *
  695.      * @return Dealer
  696.      */
  697.     public function setHourCost($hourCost)
  698.     {
  699.         $this->hour_cost $hourCost;
  700.         return $this;
  701.     }
  702.     /**
  703.      * Get hourCost
  704.      *
  705.      * @return float
  706.      */
  707.     public function getHourCost()
  708.     {
  709.         return $this->hour_cost;
  710.     }
  711.     /**
  712.      * @var string
  713.      */
  714.     private $link_facebook;
  715.     /**
  716.      * @var string
  717.      */
  718.     private $link_youtube;
  719.     /**
  720.      * @var string
  721.      */
  722.     private $link_instagram;
  723.     /**
  724.      * @var Media
  725.      */
  726.     private $image_service_center;
  727.     /**
  728.      * Set linkFacebook
  729.      *
  730.      * @param string $linkFacebook
  731.      *
  732.      * @return Dealer
  733.      */
  734.     public function setLinkFacebook($linkFacebook)
  735.     {
  736.         $this->link_facebook $linkFacebook;
  737.         return $this;
  738.     }
  739.     /**
  740.      * Get linkFacebook
  741.      *
  742.      * @return string
  743.      */
  744.     public function getLinkFacebook()
  745.     {
  746.         return $this->link_facebook;
  747.     }
  748.     /**
  749.      * Set linkYoutube
  750.      *
  751.      * @param string $linkYoutube
  752.      *
  753.      * @return Dealer
  754.      */
  755.     public function setLinkYoutube($linkYoutube)
  756.     {
  757.         $this->link_youtube $linkYoutube;
  758.         return $this;
  759.     }
  760.     /**
  761.      * Get linkYoutube
  762.      *
  763.      * @return string
  764.      */
  765.     public function getLinkYoutube()
  766.     {
  767.         return $this->link_youtube;
  768.     }
  769.     /**
  770.      * Set linkInstagram
  771.      *
  772.      * @param string $linkInstagram
  773.      *
  774.      * @return Dealer
  775.      */
  776.     public function setLinkInstagram($linkInstagram)
  777.     {
  778.         $this->link_instagram $linkInstagram;
  779.         return $this;
  780.     }
  781.     /**
  782.      * Get linkInstagram
  783.      *
  784.      * @return string
  785.      */
  786.     public function getLinkInstagram()
  787.     {
  788.         return $this->link_instagram;
  789.     }
  790.     /**
  791.      * @var string
  792.      */
  793.     private $name_ru;
  794.     /**
  795.      * Set nameRu
  796.      *
  797.      * @param string $nameRu
  798.      *
  799.      * @return Dealer
  800.      */
  801.     public function setNameRu($nameRu)
  802.     {
  803.         $this->name_ru $nameRu;
  804.         return $this;
  805.     }
  806.     /**
  807.      * Get nameRu
  808.      *
  809.      * @return string
  810.      */
  811.     public function getNameRu()
  812.     {
  813.         return $this->name_ru;
  814.     }
  815.     /**
  816.      * @param $locale
  817.      * @return string
  818.      */
  819.     public function getNameByLocale($locale 'ru')
  820.     {
  821.         if($locale == 'ru') {
  822.             return $this->getNameRu();
  823.         }
  824.         return $this->getName();
  825.     }
  826.     /**
  827.      * @var string
  828.      */
  829.     private $uid_1c;
  830.     /**
  831.      * Set uid1c
  832.      *
  833.      * @param string $uid1c
  834.      *
  835.      * @return Dealer
  836.      */
  837.     public function setUid1c($uid1c)
  838.     {
  839.         $this->uid_1c $uid1c;
  840.         return $this;
  841.     }
  842.     /**
  843.      * Get uid1c
  844.      *
  845.      * @return string
  846.      */
  847.     public function getUid1c()
  848.     {
  849.         return $this->uid_1c;
  850.     }
  851.     /**
  852.      * @var integer
  853.      */
  854.     private $position;
  855.     /**
  856.      * Set position
  857.      *
  858.      * @param integer $position
  859.      *
  860.      * @return Dealer
  861.      */
  862.     public function setPosition($position)
  863.     {
  864.         $this->position $position;
  865.         return $this;
  866.     }
  867.     /**
  868.      * Get position
  869.      *
  870.      * @return integer
  871.      */
  872.     public function getPosition()
  873.     {
  874.         return $this->position;
  875.     }
  876.     /**
  877.      * @var integer
  878.      */
  879.     private $fb_access_token;
  880.     /**
  881.      * Set fbAccessToken
  882.      *
  883.      * @param integer $fbAccessToken
  884.      *
  885.      * @return Dealer
  886.      */
  887.     public function setFbAccessToken($fbAccessToken)
  888.     {
  889.         $this->fb_access_token $fbAccessToken;
  890.         return $this;
  891.     }
  892.     /**
  893.      * Get fbAccessToken
  894.      *
  895.      * @return integer
  896.      */
  897.     public function getFbAccessToken()
  898.     {
  899.         return $this->fb_access_token;
  900.     }
  901.     /**
  902.      * @param string $official_name_ru
  903.      * @return $this
  904.      */
  905.     public function setOfficialNameRu($official_name_ru)
  906.     {
  907.         $this->official_name_ru $official_name_ru;
  908.         return $this;
  909.     }
  910.     /**
  911.      * @return string
  912.      */
  913.     public function getOfficialNameRu()
  914.     {
  915.         return $this->official_name_ru;
  916.     }
  917.     /**
  918.      * @param string $edrpou
  919.      * @return $this
  920.      */
  921.     public function setEdrpou($edrpou)
  922.     {
  923.         $this->edrpou $edrpou;
  924.         return $this;
  925.     }
  926.     /**
  927.      * @return string
  928.      */
  929.     public function getEdrpou()
  930.     {
  931.         return $this->edrpou;
  932.     }
  933.     /**
  934.      * @param string $official_name_ua
  935.      * @return $this
  936.      */
  937.     public function setOfficialNameUa($official_name_ua)
  938.     {
  939.         $this->official_name_ua $official_name_ua;
  940.         return $this;
  941.     }
  942.     /**
  943.      * @return string
  944.      */
  945.     public function getOfficialNameUa()
  946.     {
  947.         return $this->official_name_ua;
  948.     }
  949.     /**
  950.      * @param string $city_name_ru
  951.      * @return $this
  952.      */
  953.     public function setCityNameRu($city_name_ru)
  954.     {
  955.         $this->city_name_ru $city_name_ru;
  956.         return $this;
  957.     }
  958.     /**
  959.      * @return string
  960.      */
  961.     public function getCityNameRu()
  962.     {
  963.         return $this->city_name_ru;
  964.     }
  965.     /**
  966.      * @param string $city_name_ua
  967.      * @return $this
  968.      */
  969.     public function setCityNameUa($city_name_ua)
  970.     {
  971.         $this->city_name_ua $city_name_ua;
  972.         return $this;
  973.     }
  974.     /**
  975.      * @return string
  976.      */
  977.     public function getCityNameUa()
  978.     {
  979.         return $this->city_name_ua;
  980.     }
  981.     /**
  982.      * @param $locale
  983.      * @return string
  984.      */
  985.     public function getCityNameByLocale($locale)
  986.     {
  987.         return $locale === 'ua' $this->getCityNameUa() : $this->getCityNameRu();
  988.     }
  989.     /**
  990.      * @param string $address_service_ru
  991.      * @return $this
  992.      */
  993.     public function setAddressServiceRu($address_service_ru)
  994.     {
  995.         $this->address_service_ru $address_service_ru;
  996.         return $this;
  997.     }
  998.     /**
  999.      * @return string
  1000.      */
  1001.     public function getAddressServiceRu()
  1002.     {
  1003.         return $this->address_service_ru;
  1004.     }
  1005.     /**
  1006.      * @param string $address_service_ua
  1007.      * @return $this
  1008.      */
  1009.     public function setAddressServiceUa($address_service_ua)
  1010.     {
  1011.         $this->address_service_ua $address_service_ua;
  1012.         return $this;
  1013.     }
  1014.     /**
  1015.      * @return string
  1016.      */
  1017.     public function getAddressServiceUa()
  1018.     {
  1019.         return $this->address_service_ua;
  1020.     }
  1021.     /**
  1022.      * @param $locale
  1023.      * @return string
  1024.      */
  1025.     public function getAddressServiceByLocale($locale)
  1026.     {
  1027.         return $locale === 'ua' $this->getAddressServiceUa() : $this->getAddressServiceRu();
  1028.     }
  1029.     /**
  1030.      * @param string $official_address_ru
  1031.      * @return $this
  1032.      */
  1033.     public function setOfficialAddressRu($official_address_ru)
  1034.     {
  1035.         $this->official_address_ru $official_address_ru;
  1036.         return $this;
  1037.     }
  1038.     /**
  1039.      * @return string
  1040.      */
  1041.     public function getOfficialAddressRu()
  1042.     {
  1043.         return $this->official_address_ru;
  1044.     }
  1045.     /**
  1046.      * @param string $official_address_ua
  1047.      * @return $this
  1048.      */
  1049.     public function setOfficialAddressUa($official_address_ua)
  1050.     {
  1051.         $this->official_address_ua $official_address_ua;
  1052.         return $this;
  1053.     }
  1054.     /**
  1055.      * @return string
  1056.      */
  1057.     public function getOfficialAddressUa()
  1058.     {
  1059.         return $this->official_address_ua;
  1060.     }
  1061.     /**
  1062.      * @param $locale
  1063.      * @return string
  1064.      */
  1065.     public function getOfficialNameByLocale($locale)
  1066.     {
  1067.         return $locale === 'ua' $this->getOfficialNameUa() : $this->getOfficialNameRu();
  1068.     }
  1069.     /**
  1070.      * @param $locale
  1071.      * @return string
  1072.      */
  1073.     public function getOfficialAddressByLocale($locale)
  1074.     {
  1075.         return $locale === 'ua' $this->getOfficialAddressUa() : $this->getOfficialAddressRu();
  1076.     }
  1077.     /**
  1078.      * @var string
  1079.      */
  1080.     private $phone_service;
  1081.     /**
  1082.      * @param string $phone_service
  1083.      * @return $this
  1084.      */
  1085.     public function setPhoneService($phone_service)
  1086.     {
  1087.         $this->phone_service $phone_service;
  1088.         return $this;
  1089.     }
  1090.     /**
  1091.      * @return string
  1092.      */
  1093.     public function getPhoneService()
  1094.     {
  1095.         return $this->phone_service;
  1096.     }
  1097.     /**
  1098.      * @var string
  1099.      */
  1100.     private $base_name_1c;
  1101.     /**
  1102.      * Set baseName1c
  1103.      *
  1104.      * @param string $baseName1c
  1105.      *
  1106.      * @return Dealer
  1107.      */
  1108.     public function setBaseName1c($baseName1c)
  1109.     {
  1110.         $this->base_name_1c $baseName1c;
  1111.         return $this;
  1112.     }
  1113.     /**
  1114.      * Get baseName1c
  1115.      *
  1116.      * @return string
  1117.      */
  1118.     public function getBaseName1c()
  1119.     {
  1120.         return $this->base_name_1c;
  1121.     }
  1122.     private $ria_user_id;
  1123.     /**
  1124.      * Set riaUserId
  1125.      *
  1126.      * @param integer $riaUserId
  1127.      *
  1128.      * @return Dealer
  1129.      */
  1130.     public function setRiaUserId($riaUserId)
  1131.     {
  1132.         $this->ria_user_id $riaUserId;
  1133.         return $this;
  1134.     }
  1135.     /**
  1136.      * Get riaUserId
  1137.      *
  1138.      * @return integer
  1139.      */
  1140.     public function getRiaUserId()
  1141.     {
  1142.         return $this->ria_user_id;
  1143.     }
  1144.     /**
  1145.      * @var string
  1146.      */
  1147.     private $link_service_video;
  1148.     /**
  1149.      * Set linkServiceVideo
  1150.      *
  1151.      * @param string $linkServiceVideo
  1152.      *
  1153.      * @return Dealer
  1154.      */
  1155.     public function setLinkServiceVideo($linkServiceVideo)
  1156.     {
  1157.         $this->link_service_video $linkServiceVideo;
  1158.         return $this;
  1159.     }
  1160.     /**
  1161.      * Get linkServiceVideo
  1162.      *
  1163.      * @return string
  1164.      */
  1165.     public function getLinkServiceVideo()
  1166.     {
  1167.         return $this->link_service_video;
  1168.     }
  1169.     /**
  1170.      * @var float
  1171.      */
  1172.     private $rate_in_delivery;
  1173.     /**
  1174.      * Set rateInDelivery
  1175.      *
  1176.      * @param float $rateInDelivery
  1177.      *
  1178.      * @return Dealer
  1179.      */
  1180.     public function setRateInDelivery($rateInDelivery)
  1181.     {
  1182.         $this->rate_in_delivery $rateInDelivery;
  1183.         return $this;
  1184.     }
  1185.     /**
  1186.      * Get rateInDelivery
  1187.      *
  1188.      * @return float
  1189.      */
  1190.     public function getRateInDelivery()
  1191.     {
  1192.         return $this->rate_in_delivery;
  1193.     }
  1194.     /**
  1195.      * Set imageServiceCenter
  1196.      *
  1197.      * @param Media $imageServiceCenter
  1198.      *
  1199.      * @return Dealer
  1200.      */
  1201.     public function setImageServiceCenter(Media $imageServiceCenter null)
  1202.     {
  1203.         $this->image_service_center $imageServiceCenter;
  1204.         return $this;
  1205.     }
  1206.     /**
  1207.      * Get imageServiceCenter
  1208.      *
  1209.      * @return Media
  1210.      */
  1211.     public function getImageServiceCenter()
  1212.     {
  1213.         return $this->image_service_center;
  1214.     }
  1215.     /**
  1216.      * Set facilities
  1217.      *
  1218.      * @param string $facilities
  1219.      *
  1220.      * @return Dealer
  1221.      */
  1222.     public function setFacilities($facilities)
  1223.     {
  1224.         $this->facilities $facilities;
  1225.         return $this;
  1226.     }
  1227.     /**
  1228.      * Get facilities
  1229.      *
  1230.      * @return string
  1231.      */
  1232.     public function getFacilities()
  1233.     {
  1234.         return $this->facilities;
  1235.     }
  1236.     /**
  1237.      * @var City
  1238.      */
  1239.     private $city;
  1240.     /**
  1241.      * Set city.
  1242.      *
  1243.      * @param City|null $city
  1244.      *
  1245.      * @return Dealer
  1246.      */
  1247.     public function setCity(City $city null)
  1248.     {
  1249.         $this->city $city;
  1250.         return $this;
  1251.     }
  1252.     /**
  1253.      * Get city.
  1254.      *
  1255.      * @return City|null
  1256.      */
  1257.     public function getCity()
  1258.     {
  1259.         return $this->city;
  1260.     }
  1261.     public function hasCity()
  1262.     {
  1263.         return $this->getCity() ?? false;
  1264.     }
  1265.     /**
  1266.      * @var Collection
  1267.      */
  1268.     private $service_work;
  1269.     /**
  1270.      * Add serviceWork.
  1271.      *
  1272.      * @param ServiceWork $serviceWork
  1273.      *
  1274.      * @return Dealer
  1275.      */
  1276.     public function addServiceWork(ServiceWork $serviceWork)
  1277.     {
  1278.         $this->service_work[] = $serviceWork;
  1279.         return $this;
  1280.     }
  1281.     /**
  1282.      * Remove serviceWork.
  1283.      *
  1284.      * @param ServiceWork $serviceWork
  1285.      *
  1286.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  1287.      */
  1288.     public function removeServiceWork(ServiceWork $serviceWork)
  1289.     {
  1290.         return $this->service_work->removeElement($serviceWork);
  1291.     }
  1292.     /**
  1293.      * Get serviceWork.
  1294.      *
  1295.      * @return Collection
  1296.      */
  1297.     public function getServiceWork()
  1298.     {
  1299.         return $this->service_work;
  1300.     }
  1301.     /**
  1302.      * @var string|null
  1303.      */
  1304.     private $nova_poshta_api_key;
  1305.     /**
  1306.      * Set novaPoshtaApiKey.
  1307.      *
  1308.      * @param string|null $novaPoshtaApiKey
  1309.      *
  1310.      * @return Dealer
  1311.      */
  1312.     public function setNovaPoshtaApiKey($novaPoshtaApiKey null)
  1313.     {
  1314.         $this->nova_poshta_api_key $novaPoshtaApiKey;
  1315.         return $this;
  1316.     }
  1317.     /**
  1318.      * Get novaPoshtaApiKey.
  1319.      *
  1320.      * @return string|null
  1321.      */
  1322.     public function getNovaPoshtaApiKey()
  1323.     {
  1324.         return $this->nova_poshta_api_key;
  1325.     }
  1326.     /**
  1327.      * @var DealerWorkHours
  1328.      */
  1329.     private $dealerWorkHours;
  1330.     /**
  1331.      * Set dealerWorkHours.
  1332.      *
  1333.      * @param DealerWorkHours|null $dealerWorkHours
  1334.      *
  1335.      * @return Dealer
  1336.      */
  1337.     public function setDealerWorkHours(DealerWorkHours $dealerWorkHours null)
  1338.     {
  1339.         $this->dealerWorkHours $dealerWorkHours;
  1340.         return $this;
  1341.     }
  1342.     /**
  1343.      * Get dealerWorkHours.
  1344.      *
  1345.      * @return DealerWorkHours|null
  1346.      */
  1347.     public function getDealerWorkHours()
  1348.     {
  1349.         return $this->dealerWorkHours;
  1350.     }
  1351.     /**
  1352.      * @param string $iban
  1353.      * @return $this
  1354.      */
  1355.     public function setIban($iban)
  1356.     {
  1357.         $this->iban $iban;
  1358.         return $this;
  1359.     }
  1360.     /**
  1361.      * @return string
  1362.      */
  1363.     public function getIban()
  1364.     {
  1365.         return $this->iban;
  1366.     }
  1367.     /**
  1368.      * Set descriptionUa.
  1369.      *
  1370.      * @param string $descriptionUa
  1371.      *
  1372.      */
  1373.     public function setDescriptionUa($descriptionUa)
  1374.     {
  1375.         $this->description_ua $descriptionUa;
  1376.         return $this;
  1377.     }
  1378.     /**
  1379.      * Get descriptionUa.
  1380.      *
  1381.      * @return string
  1382.      */
  1383.     public function getDescriptionUa()
  1384.     {
  1385.         return $this->description_ua;
  1386.     }
  1387.     /**
  1388.      * Set descriptionRu.
  1389.      *
  1390.      * @param string $descriptionRu
  1391.      *
  1392.      */
  1393.     public function setDescriptionRu($descriptionRu)
  1394.     {
  1395.         $this->description_ru $descriptionRu;
  1396.         return $this;
  1397.     }
  1398.     /**
  1399.      * Get descriptionRu.
  1400.      *
  1401.      * @return string
  1402.      */
  1403.     public function getDescriptionRu()
  1404.     {
  1405.         return $this->description_ru;
  1406.     }
  1407.     /**
  1408.      * @param $locale
  1409.      * @return string
  1410.      */
  1411.     public function getDescriptionByLocale($locale 'ru')
  1412.     {
  1413.         if($locale == 'ru') {
  1414.             return $this->getDescriptionRu();
  1415.         }
  1416.         return $this->getDescriptionUa();
  1417.     }
  1418.     /**
  1419.      * Set gallery
  1420.      *
  1421.      * @param Gallery $gallery
  1422.      *
  1423.      * @return Post
  1424.      */
  1425.     public function setGallery(Gallery $gallery null)
  1426.     {
  1427.         $this->gallery $gallery;
  1428.         return $this;
  1429.     }
  1430.     /**
  1431.      * Get gallery
  1432.      *
  1433.      * @return Gallery
  1434.      */
  1435.     public function getGallery()
  1436.     {
  1437.         return $this->gallery;
  1438.     }
  1439.     /**
  1440.      * @param string $seo_url
  1441.      * @return $this
  1442.      */
  1443.     public function setSeoUrl($seo_url)
  1444.     {
  1445.         $this->seo_url $seo_url;
  1446.         return $this;
  1447.     }
  1448.     /**
  1449.      * @return string
  1450.      */
  1451.     public function getSeoUrl()
  1452.     {
  1453.         return $this->seo_url;
  1454.     }
  1455.     /**
  1456.      * @var string|null
  1457.      */
  1458.     private $merchant_id;
  1459.     /**
  1460.      * Set merchantId.
  1461.      *
  1462.      * @param string|null $merchantId
  1463.      *
  1464.      * @return Dealer
  1465.      */
  1466.     public function setMerchantId($merchantId null)
  1467.     {
  1468.         $this->merchant_id $merchantId;
  1469.         return $this;
  1470.     }
  1471.     /**
  1472.      * Get merchantId.
  1473.      *
  1474.      * @return string|null
  1475.      */
  1476.     public function getMerchantId()
  1477.     {
  1478.         return $this->merchant_id;
  1479.     }
  1480.     /**
  1481.      * @var int|null
  1482.      */
  1483.     private $output_order;
  1484.     /**
  1485.      * Set outputOrder.
  1486.      *
  1487.      * @param int|null $outputOrder
  1488.      *
  1489.      * @return Dealer
  1490.      */
  1491.     public function setOutputOrder($outputOrder null)
  1492.     {
  1493.         $this->output_order $outputOrder;
  1494.         return $this;
  1495.     }
  1496.     /**
  1497.      * Get outputOrder.
  1498.      *
  1499.      * @return int|null
  1500.      */
  1501.     public function getOutputOrder()
  1502.     {
  1503.         return $this->output_order;
  1504.     }
  1505.     private $external_uid_1c;
  1506.     /**
  1507.      * Set externalUid1c
  1508.      *
  1509.      * @param string $externalUid1c
  1510.      *
  1511.      * @return Dealer
  1512.      */
  1513.     public function setExternalUid1c($externalUid1c)
  1514.     {
  1515.         $this->external_uid_1c $externalUid1c;
  1516.         return $this;
  1517.     }
  1518.     /**
  1519.      * Get externalUid1c
  1520.      *
  1521.      * @return string
  1522.      */
  1523.     public function getExternalUid1c()
  1524.     {
  1525.         return $this->external_uid_1c;
  1526.     }
  1527.     /**
  1528.      * @var Collection
  1529.      */
  1530.     private $operating_manuals;
  1531.     /**
  1532.      * Add operatingManual.
  1533.      *
  1534.      * @param OperatingManuals $operatingManual
  1535.      *
  1536.      * @return Dealer
  1537.      */
  1538.     public function addOperatingManual(OperatingManuals $operatingManual)
  1539.     {
  1540.         $this->operating_manuals[] = $operatingManual;
  1541.         return $this;
  1542.     }
  1543.     /**
  1544.      * Remove operatingManual.
  1545.      *
  1546.      * @param OperatingManuals $operatingManual
  1547.      *
  1548.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  1549.      */
  1550.     public function removeOperatingManual(OperatingManuals $operatingManual)
  1551.     {
  1552.         return $this->operating_manuals->removeElement($operatingManual);
  1553.     }
  1554.     /**
  1555.      * Get operatingManuals.
  1556.      *
  1557.      * @return Collection
  1558.      */
  1559.     public function getOperatingManuals()
  1560.     {
  1561.         return $this->operating_manuals;
  1562.     }
  1563.     public function getIsNightDealer(): bool
  1564.     {
  1565.         return $this->isNightDealer;
  1566.     }
  1567.     public function setIsNightDealer(bool $isNightDealer): Dealer
  1568.     {
  1569.         $this->isNightDealer $isNightDealer;
  1570.         return $this;
  1571.     }
  1572.     /**
  1573.      * @var string|null
  1574.      */
  1575.     private $facebook_pixel_code;
  1576.     /**
  1577.      * Set facebookPixelCode.
  1578.      *
  1579.      * @param string|null $facebookPixelCode
  1580.      *
  1581.      * @return Dealer
  1582.      */
  1583.     public function setFacebookPixelCode($facebookPixelCode null)
  1584.     {
  1585.         $this->facebook_pixel_code $facebookPixelCode;
  1586.         return $this;
  1587.     }
  1588.     /**
  1589.      * Get facebookPixelCode.
  1590.      *
  1591.      * @return string|null
  1592.      */
  1593.     public function getFacebookPixelCode()
  1594.     {
  1595.         return $this->facebook_pixel_code;
  1596.     }
  1597.     /**
  1598.      * @var Collection
  1599.      */
  1600.     private $faq;
  1601.     /**
  1602.      * Add faq.
  1603.      *
  1604.      * @param Faq $faq
  1605.      *
  1606.      * @return Dealer
  1607.      */
  1608.     public function addFaq(Faq $faq)
  1609.     {
  1610.         $this->faq[] = $faq;
  1611.         return $this;
  1612.     }
  1613.     /**
  1614.      * Remove faq.
  1615.      *
  1616.      * @param Faq $faq
  1617.      *
  1618.      * @return boolean TRUE if this collection contained the specified element, FALSE otherwise.
  1619.      */
  1620.     public function removeFaq(Faq $faq)
  1621.     {
  1622.         return $this->faq->removeElement($faq);
  1623.     }
  1624.     /**
  1625.      * Get faq.
  1626.      *
  1627.      * @return Collection
  1628.      */
  1629.     public function getFaq()
  1630.     {
  1631.         return $this->faq;
  1632.     }
  1633.     /**
  1634.      * @var string|null
  1635.      */
  1636.     private $tik_tok_pixel_code;
  1637.     /**
  1638.      * Set tikTokPixelCode.
  1639.      *
  1640.      * @param string|null $tikTokPixelCode
  1641.      *
  1642.      * @return Dealer
  1643.      */
  1644.     public function setTikTokPixelCode($tikTokPixelCode null)
  1645.     {
  1646.         $this->tik_tok_pixel_code $tikTokPixelCode;
  1647.         return $this;
  1648.     }
  1649.     /**
  1650.      * Get tikTokPixelCode.
  1651.      *
  1652.      * @return string|null
  1653.      */
  1654.     public function getTikTokPixelCode()
  1655.     {
  1656.         return $this->tik_tok_pixel_code;
  1657.     }
  1658.     /**
  1659.      * @var \Doctrine\Common\Collections\Collection
  1660.      */
  1661.     private $posts;
  1662.     /**
  1663.      * Get posts.
  1664.      *
  1665.      * @return \Doctrine\Common\Collections\Collection
  1666.      */
  1667.     public function getPosts()
  1668.     {
  1669.         return $this->posts;
  1670.     }
  1671.     /**
  1672.      * @return string|null
  1673.      */
  1674.     public function getGtmCode(): ?string
  1675.     {
  1676.         return $this->gtm_code;
  1677.     }
  1678.     /**
  1679.      * @param $gtm_code
  1680.      * @return void
  1681.      */
  1682.     public function setGtmCode($gtm_code null): void
  1683.     {
  1684.         $this->gtm_code $gtm_code;
  1685.     }
  1686. }