src/ImporterBundle/Entity/Dealer.php line 14

Open in your IDE?
  1. <?php
  2. namespace ImporterBundle\Entity;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use CoreBundle\Entity\User;
  5. use CoreBundle\Entity\Brand;
  6. use Application\Sonata\MediaBundle\Entity\Media;
  7. use Doctrine\Common\Collections\Collection;
  8. /**
  9.  * Dealer
  10.  */
  11. class Dealer
  12. {
  13.     /**
  14.      * @var integer
  15.      */
  16.     private $id;
  17.     /**
  18.      * @var string
  19.      */
  20.     private $name;
  21.     /**
  22.      * @var string
  23.      */
  24.     private $name_ru;
  25.     /**
  26.      * @var string
  27.      */
  28.     private $crm_name;
  29.     /**
  30.      * @var string
  31.      */
  32.     private $domain;
  33.     /**
  34.      * @var string
  35.      */
  36.     private $url;
  37.     /**
  38.      * @var string
  39.      */
  40.     private $address_ru;
  41.     /**
  42.      * @var string
  43.      */
  44.     private $address_ua;
  45.     /**
  46.      * @var string
  47.      */
  48.     private $phone;
  49.     /**
  50.      * @var string
  51.      */
  52.     private $email_sale;
  53.     /**
  54.      * @var string
  55.      */
  56.     private $email_service;
  57.     /**
  58.      * @var float
  59.      */
  60.     private $rate;
  61.     /**
  62.      * @var float
  63.      */
  64.     private $hour_cost;
  65.     /**
  66.      * @var string
  67.      */
  68.     private $open_time;
  69.     /**
  70.      * @var string
  71.      */
  72.     private $close_time;
  73.     /**
  74.      * @var string
  75.      */
  76.     private $open_time_saturday;
  77.     /**
  78.      * @var string
  79.      */
  80.     private $close_time_saturday;
  81.     /**
  82.      * @var string
  83.      */
  84.     private $open_time_sunday;
  85.     /**
  86.      * @var string
  87.      */
  88.     private $close_time_sunday;
  89.     /**
  90.      * @var string
  91.      */
  92.     private $unique_id;
  93.     /**
  94.      * @var string
  95.      */
  96.     private $ga_tracking_id;
  97.     /**
  98.      * @var string
  99.      */
  100.     private $crm_id;
  101.     /**
  102.      * @var string
  103.      */
  104.     private $uid_1c;
  105.     /**
  106.      * @var string
  107.      */
  108.     private $lat;
  109.     /**
  110.      * @var string
  111.      */
  112.     private $lng;
  113.     /**
  114.      * @var string
  115.      */
  116.     private $link_facebook;
  117.     /**
  118.      * @var string
  119.      */
  120.     private $link_youtube;
  121.     /**
  122.      * @var string
  123.      */
  124.     private $link_instagram;
  125.     /**
  126.      * @var integer
  127.      */
  128.     private $position;
  129.     /**
  130.      * @var integer
  131.      */
  132.     private $fb_access_token;
  133.     /**
  134.      * @var string
  135.      */
  136.     private $official_name_ru;
  137.     /**
  138.      * @var string
  139.      */
  140.     private $official_name_ua;
  141.     /**
  142.      * @var string
  143.      */
  144.     private $official_address_ru;
  145.     /**
  146.      * @var string
  147.      */
  148.     private $official_address_ua;
  149.     /**
  150.      * @var string
  151.      */
  152.     private $edrpou;
  153.     /**
  154.      * @var string
  155.      */
  156.     private $phone_service;
  157.     /**
  158.      * @var string
  159.      */
  160.     private $base_name_1c;
  161.     /**
  162.      * @var integer
  163.      */
  164.     private $ria_user_id;
  165.     /**
  166.      * @var Collection
  167.      */
  168.     private $vacancies;
  169.     /**
  170.      * @var Collection
  171.      */
  172.     private $users;
  173.     /**
  174.      * @var Brand
  175.      */
  176.     private $brand;
  177.     /**
  178.      * @var string
  179.      */
  180.     private $about_ru;
  181.     /**
  182.      * @var string
  183.      */
  184.     private $about_ua;
  185.     /**
  186.      * @var string
  187.      */
  188.     private $city_ua;
  189.     /**
  190.      * @var string
  191.      */
  192.     private $city_ru;
  193.     /**
  194.      * @var Media
  195.      */
  196.     private $image;
  197.     /**
  198.      * @var integer
  199.      */
  200.     private $crm_user_id;
  201.     /**
  202.      * @var string
  203.      */
  204.     private $gtm_token;
  205.     /**
  206.      * Constructor
  207.      */
  208.     public function __construct()
  209.     {
  210.         $this->vacancies = new ArrayCollection();
  211.         $this->users = new ArrayCollection();
  212.     }
  213.     /**
  214.      * Get id
  215.      *
  216.      * @return integer
  217.      */
  218.     public function getId()
  219.     {
  220.         return $this->id;
  221.     }
  222.     /**
  223.      * Set name
  224.      *
  225.      * @param string $name
  226.      *
  227.      * @return Dealer
  228.      */
  229.     public function setName($name)
  230.     {
  231.         $this->name $name;
  232.         return $this;
  233.     }
  234.     /**
  235.      * Get name
  236.      *
  237.      * @return string
  238.      */
  239.     public function getName()
  240.     {
  241.         return $this->name;
  242.     }
  243.     /**
  244.      * Set nameRu
  245.      *
  246.      * @param string $nameRu
  247.      *
  248.      * @return Dealer
  249.      */
  250.     public function setNameRu($nameRu)
  251.     {
  252.         $this->name_ru $nameRu;
  253.         return $this;
  254.     }
  255.     /**
  256.      * Get nameRu
  257.      *
  258.      * @return string
  259.      */
  260.     public function getNameRu()
  261.     {
  262.         return $this->name_ru;
  263.     }
  264.     /**
  265.      * Set crmName
  266.      *
  267.      * @param string $crmName
  268.      *
  269.      * @return Dealer
  270.      */
  271.     public function setCrmName($crmName)
  272.     {
  273.         $this->crm_name $crmName;
  274.         return $this;
  275.     }
  276.     /**
  277.      * Get crmName
  278.      *
  279.      * @return string
  280.      */
  281.     public function getCrmName()
  282.     {
  283.         return $this->crm_name;
  284.     }
  285.     /**
  286.      * Set domain
  287.      *
  288.      * @param string $domain
  289.      *
  290.      * @return Dealer
  291.      */
  292.     public function setDomain($domain)
  293.     {
  294.         $this->domain $domain;
  295.         return $this;
  296.     }
  297.     /**
  298.      * Get domain
  299.      *
  300.      * @return string
  301.      */
  302.     public function getDomain()
  303.     {
  304.         return $this->domain;
  305.     }
  306.     /**
  307.      * Set url
  308.      *
  309.      * @param string $url
  310.      *
  311.      * @return Dealer
  312.      */
  313.     public function setUrl($url)
  314.     {
  315.         $this->url $url;
  316.         return $this;
  317.     }
  318.     /**
  319.      * Get url
  320.      *
  321.      * @return string
  322.      */
  323.     public function getUrl()
  324.     {
  325.         return $this->url;
  326.     }
  327.     /**
  328.      * Set addressRu
  329.      *
  330.      * @param string $addressRu
  331.      *
  332.      * @return Dealer
  333.      */
  334.     public function setAddressRu($addressRu)
  335.     {
  336.         $this->address_ru $addressRu;
  337.         return $this;
  338.     }
  339.     /**
  340.      * Get addressRu
  341.      *
  342.      * @return string
  343.      */
  344.     public function getAddressRu()
  345.     {
  346.         return $this->address_ru;
  347.     }
  348.     /**
  349.      * Set addressUa
  350.      *
  351.      * @param string $addressUa
  352.      *
  353.      * @return Dealer
  354.      */
  355.     public function setAddressUa($addressUa)
  356.     {
  357.         $this->address_ua $addressUa;
  358.         return $this;
  359.     }
  360.     /**
  361.      * Get addressUa
  362.      *
  363.      * @return string
  364.      */
  365.     public function getAddressUa()
  366.     {
  367.         return $this->address_ua;
  368.     }
  369.     /**
  370.      * @param $locale
  371.      * @return string
  372.      */
  373.     public function getAddressByLocale($locale) {
  374.         if($locale == 'ru') {
  375.             return $this->getAddressRu();
  376.         }
  377.         return $this->getAddressUa();
  378.     }
  379.     /**
  380.      * @param $locale
  381.      * @return string
  382.      */
  383.     public function getOfficialNameByLocale($locale)
  384.     {
  385.         return $locale === 'ua' $this->getOfficialNameUa() : $this->getOfficialNameRu();
  386.     }
  387.     /**
  388.      * @param $locale
  389.      * @return string
  390.      */
  391.     public function getOfficialAddressByLocale($locale)
  392.     {
  393.         return $locale === 'ua' $this->getOfficialAddressUa() : $this->getOfficialAddressRu();
  394.     }
  395.     /**
  396.      * @param $locale
  397.      * @return string
  398.      */
  399.     public function getNameByLocale($locale 'ru')
  400.     {
  401.         if($locale == 'ru') {
  402.             return $this->getNameRu();
  403.         }
  404.         return $this->getName();
  405.     }
  406.     /**
  407.      * Set phone
  408.      *
  409.      * @param string $phone
  410.      *
  411.      * @return Dealer
  412.      */
  413.     public function setPhone($phone)
  414.     {
  415.         $this->phone $phone;
  416.         return $this;
  417.     }
  418.     /**
  419.      * Get phone
  420.      *
  421.      * @return string
  422.      */
  423.     public function getPhone()
  424.     {
  425.         return $this->phone;
  426.     }
  427.     /**
  428.      * Set emailSale
  429.      *
  430.      * @param string $emailSale
  431.      *
  432.      * @return Dealer
  433.      */
  434.     public function setEmailSale($emailSale)
  435.     {
  436.         $this->email_sale $emailSale;
  437.         return $this;
  438.     }
  439.     /**
  440.      * Get emailSale
  441.      *
  442.      * @return string
  443.      */
  444.     public function getEmailSale()
  445.     {
  446.         return $this->email_sale;
  447.     }
  448.     /**
  449.      * Set emailService
  450.      *
  451.      * @param string $emailService
  452.      *
  453.      * @return Dealer
  454.      */
  455.     public function setEmailService($emailService)
  456.     {
  457.         $this->email_service $emailService;
  458.         return $this;
  459.     }
  460.     /**
  461.      * Get emailService
  462.      *
  463.      * @return string
  464.      */
  465.     public function getEmailService()
  466.     {
  467.         return $this->email_service;
  468.     }
  469.     /**
  470.      * Set rate
  471.      *
  472.      * @param float $rate
  473.      *
  474.      * @return Dealer
  475.      */
  476.     public function setRate($rate)
  477.     {
  478.         $this->rate $rate;
  479.         return $this;
  480.     }
  481.     /**
  482.      * Get rate
  483.      *
  484.      * @return float
  485.      */
  486.     public function getRate()
  487.     {
  488.         return $this->rate;
  489.     }
  490.     /**
  491.      * Set hourCost
  492.      *
  493.      * @param float $hourCost
  494.      *
  495.      * @return Dealer
  496.      */
  497.     public function setHourCost($hourCost)
  498.     {
  499.         $this->hour_cost $hourCost;
  500.         return $this;
  501.     }
  502.     /**
  503.      * Get hourCost
  504.      *
  505.      * @return float
  506.      */
  507.     public function getHourCost()
  508.     {
  509.         return $this->hour_cost;
  510.     }
  511.     /**
  512.      * Set openTime
  513.      *
  514.      * @param string $openTime
  515.      *
  516.      * @return Dealer
  517.      */
  518.     public function setOpenTime($openTime)
  519.     {
  520.         $this->open_time $openTime;
  521.         return $this;
  522.     }
  523.     /**
  524.      * Get openTime
  525.      *
  526.      * @return string
  527.      */
  528.     public function getOpenTime()
  529.     {
  530.         return $this->open_time;
  531.     }
  532.     /**
  533.      * Set closeTime
  534.      *
  535.      * @param string $closeTime
  536.      *
  537.      * @return Dealer
  538.      */
  539.     public function setCloseTime($closeTime)
  540.     {
  541.         $this->close_time $closeTime;
  542.         return $this;
  543.     }
  544.     /**
  545.      * Get closeTime
  546.      *
  547.      * @return string
  548.      */
  549.     public function getCloseTime()
  550.     {
  551.         return $this->close_time;
  552.     }
  553.     /**
  554.      * Set uniqueId
  555.      *
  556.      * @param string $uniqueId
  557.      *
  558.      * @return Dealer
  559.      */
  560.     public function setUniqueId($uniqueId)
  561.     {
  562.         $this->unique_id $uniqueId;
  563.         return $this;
  564.     }
  565.     /**
  566.      * Get uniqueId
  567.      *
  568.      * @return string
  569.      */
  570.     public function getUniqueId()
  571.     {
  572.         return $this->unique_id;
  573.     }
  574.     /**
  575.      * Set gaTrackingId
  576.      *
  577.      * @param string $gaTrackingId
  578.      *
  579.      * @return Dealer
  580.      */
  581.     public function setGaTrackingId($gaTrackingId)
  582.     {
  583.         $this->ga_tracking_id $gaTrackingId;
  584.         return $this;
  585.     }
  586.     /**
  587.      * Get gaTrackingId
  588.      *
  589.      * @return string
  590.      */
  591.     public function getGaTrackingId()
  592.     {
  593.         return $this->ga_tracking_id;
  594.     }
  595.     /**
  596.      * Set crmId
  597.      *
  598.      * @param string $crmId
  599.      *
  600.      * @return Dealer
  601.      */
  602.     public function setCrmId($crmId)
  603.     {
  604.         $this->crm_id $crmId;
  605.         return $this;
  606.     }
  607.     /**
  608.      * Get crmId
  609.      *
  610.      * @return string
  611.      */
  612.     public function getCrmId()
  613.     {
  614.         return $this->crm_id;
  615.     }
  616.     /**
  617.      * Set uid1c
  618.      *
  619.      * @param string $uid1c
  620.      *
  621.      * @return Dealer
  622.      */
  623.     public function setUid1c($uid1c)
  624.     {
  625.         $this->uid_1c $uid1c;
  626.         return $this;
  627.     }
  628.     /**
  629.      * Get uid1c
  630.      *
  631.      * @return string
  632.      */
  633.     public function getUid1c()
  634.     {
  635.         return $this->uid_1c;
  636.     }
  637.     /**
  638.      * Set lat
  639.      *
  640.      * @param string $lat
  641.      *
  642.      * @return Dealer
  643.      */
  644.     public function setLat($lat)
  645.     {
  646.         $this->lat $lat;
  647.         return $this;
  648.     }
  649.     /**
  650.      * Get lat
  651.      *
  652.      * @return string
  653.      */
  654.     public function getLat()
  655.     {
  656.         return $this->lat;
  657.     }
  658.     /**
  659.      * Set lng
  660.      *
  661.      * @param string $lng
  662.      *
  663.      * @return Dealer
  664.      */
  665.     public function setLng($lng)
  666.     {
  667.         $this->lng $lng;
  668.         return $this;
  669.     }
  670.     /**
  671.      * Get lng
  672.      *
  673.      * @return string
  674.      */
  675.     public function getLng()
  676.     {
  677.         return $this->lng;
  678.     }
  679.     /**
  680.      * Set linkFacebook
  681.      *
  682.      * @param string $linkFacebook
  683.      *
  684.      * @return Dealer
  685.      */
  686.     public function setLinkFacebook($linkFacebook)
  687.     {
  688.         $this->link_facebook $linkFacebook;
  689.         return $this;
  690.     }
  691.     /**
  692.      * Get linkFacebook
  693.      *
  694.      * @return string
  695.      */
  696.     public function getLinkFacebook()
  697.     {
  698.         return $this->link_facebook;
  699.     }
  700.     /**
  701.      * Set linkYoutube
  702.      *
  703.      * @param string $linkYoutube
  704.      *
  705.      * @return Dealer
  706.      */
  707.     public function setLinkYoutube($linkYoutube)
  708.     {
  709.         $this->link_youtube $linkYoutube;
  710.         return $this;
  711.     }
  712.     /**
  713.      * Get linkYoutube
  714.      *
  715.      * @return string
  716.      */
  717.     public function getLinkYoutube()
  718.     {
  719.         return $this->link_youtube;
  720.     }
  721.     /**
  722.      * Set linkInstagram
  723.      *
  724.      * @param string $linkInstagram
  725.      *
  726.      * @return Dealer
  727.      */
  728.     public function setLinkInstagram($linkInstagram)
  729.     {
  730.         $this->link_instagram $linkInstagram;
  731.         return $this;
  732.     }
  733.     /**
  734.      * Get linkInstagram
  735.      *
  736.      * @return string
  737.      */
  738.     public function getLinkInstagram()
  739.     {
  740.         return $this->link_instagram;
  741.     }
  742.     /**
  743.      * Set position
  744.      *
  745.      * @param integer $position
  746.      *
  747.      * @return Dealer
  748.      */
  749.     public function setPosition($position)
  750.     {
  751.         $this->position $position;
  752.         return $this;
  753.     }
  754.     /**
  755.      * Get position
  756.      *
  757.      * @return integer
  758.      */
  759.     public function getPosition()
  760.     {
  761.         return $this->position;
  762.     }
  763.     /**
  764.      * Set fbAccessToken
  765.      *
  766.      * @param integer $fbAccessToken
  767.      *
  768.      * @return Dealer
  769.      */
  770.     public function setFbAccessToken($fbAccessToken)
  771.     {
  772.         $this->fb_access_token $fbAccessToken;
  773.         return $this;
  774.     }
  775.     /**
  776.      * Get fbAccessToken
  777.      *
  778.      * @return integer
  779.      */
  780.     public function getFbAccessToken()
  781.     {
  782.         return $this->fb_access_token;
  783.     }
  784.     /**
  785.      * Set officialNameRu
  786.      *
  787.      * @param string $officialNameRu
  788.      *
  789.      * @return Dealer
  790.      */
  791.     public function setOfficialNameRu($officialNameRu)
  792.     {
  793.         $this->official_name_ru $officialNameRu;
  794.         return $this;
  795.     }
  796.     /**
  797.      * Get officialNameRu
  798.      *
  799.      * @return string
  800.      */
  801.     public function getOfficialNameRu()
  802.     {
  803.         return $this->official_name_ru;
  804.     }
  805.     /**
  806.      * Set officialNameUa
  807.      *
  808.      * @param string $officialNameUa
  809.      *
  810.      * @return Dealer
  811.      */
  812.     public function setOfficialNameUa($officialNameUa)
  813.     {
  814.         $this->official_name_ua $officialNameUa;
  815.         return $this;
  816.     }
  817.     /**
  818.      * Get officialNameUa
  819.      *
  820.      * @return string
  821.      */
  822.     public function getOfficialNameUa()
  823.     {
  824.         return $this->official_name_ua;
  825.     }
  826.     /**
  827.      * Set officialAddressRu
  828.      *
  829.      * @param string $officialAddressRu
  830.      *
  831.      * @return Dealer
  832.      */
  833.     public function setOfficialAddressRu($officialAddressRu)
  834.     {
  835.         $this->official_address_ru $officialAddressRu;
  836.         return $this;
  837.     }
  838.     /**
  839.      * Get officialAddressRu
  840.      *
  841.      * @return string
  842.      */
  843.     public function getOfficialAddressRu()
  844.     {
  845.         return $this->official_address_ru;
  846.     }
  847.     /**
  848.      * Set officialAddressUa
  849.      *
  850.      * @param string $officialAddressUa
  851.      *
  852.      * @return Dealer
  853.      */
  854.     public function setOfficialAddressUa($officialAddressUa)
  855.     {
  856.         $this->official_address_ua $officialAddressUa;
  857.         return $this;
  858.     }
  859.     /**
  860.      * Get officialAddressUa
  861.      *
  862.      * @return string
  863.      */
  864.     public function getOfficialAddressUa()
  865.     {
  866.         return $this->official_address_ua;
  867.     }
  868.     /**
  869.      * Set edrpou
  870.      *
  871.      * @param string $edrpou
  872.      *
  873.      * @return Dealer
  874.      */
  875.     public function setEdrpou($edrpou)
  876.     {
  877.         $this->edrpou $edrpou;
  878.         return $this;
  879.     }
  880.     /**
  881.      * Get edrpou
  882.      *
  883.      * @return string
  884.      */
  885.     public function getEdrpou()
  886.     {
  887.         return $this->edrpou;
  888.     }
  889.     /**
  890.      * Set phoneService
  891.      *
  892.      * @param string $phoneService
  893.      *
  894.      * @return Dealer
  895.      */
  896.     public function setPhoneService($phoneService)
  897.     {
  898.         $this->phone_service $phoneService;
  899.         return $this;
  900.     }
  901.     /**
  902.      * Get phoneService
  903.      *
  904.      * @return string
  905.      */
  906.     public function getPhoneService()
  907.     {
  908.         return $this->phone_service;
  909.     }
  910.     /**
  911.      * Set baseName1c
  912.      *
  913.      * @param string $baseName1c
  914.      *
  915.      * @return Dealer
  916.      */
  917.     public function setBaseName1c($baseName1c)
  918.     {
  919.         $this->base_name_1c $baseName1c;
  920.         return $this;
  921.     }
  922.     /**
  923.      * Get baseName1c
  924.      *
  925.      * @return string
  926.      */
  927.     public function getBaseName1c()
  928.     {
  929.         return $this->base_name_1c;
  930.     }
  931.     /**
  932.      * Set riaUserId
  933.      *
  934.      * @param integer $riaUserId
  935.      *
  936.      * @return Dealer
  937.      */
  938.     public function setRiaUserId($riaUserId)
  939.     {
  940.         $this->ria_user_id $riaUserId;
  941.         return $this;
  942.     }
  943.     /**
  944.      * Get riaUserId
  945.      *
  946.      * @return integer
  947.      */
  948.     public function getRiaUserId()
  949.     {
  950.         return $this->ria_user_id;
  951.     }
  952.     /**
  953.      * Add vacancy
  954.      *
  955.      * @param Vacancy $vacancy
  956.      *
  957.      * @return Dealer
  958.      */
  959.     public function addVacancy(Vacancy $vacancy)
  960.     {
  961.         $this->vacancies[] = $vacancy;
  962.         return $this;
  963.     }
  964.     /**
  965.      * Remove vacancy
  966.      *
  967.      * @param Vacancy $vacancy
  968.      */
  969.     public function removeVacancy(Vacancy $vacancy)
  970.     {
  971.         $this->vacancies->removeElement($vacancy);
  972.     }
  973.     /**
  974.      * Get vacancies
  975.      *
  976.      * @return Collection
  977.      */
  978.     public function getVacancies()
  979.     {
  980.         return $this->vacancies;
  981.     }
  982.     /**
  983.      * Add user
  984.      *
  985.      * @param User $user
  986.      *
  987.      * @return Dealer
  988.      */
  989.     public function addUser(User $user)
  990.     {
  991.         $this->users[] = $user;
  992.         return $this;
  993.     }
  994.     /**
  995.      * Remove user
  996.      *
  997.      * @param User $user
  998.      */
  999.     public function removeUser(User $user)
  1000.     {
  1001.         $this->users->removeElement($user);
  1002.     }
  1003.     /**
  1004.      * Get users
  1005.      *
  1006.      * @return Collection
  1007.      */
  1008.     public function getUsers()
  1009.     {
  1010.         return $this->users;
  1011.     }
  1012.     /**
  1013.      * Set brand
  1014.      *
  1015.      * @param Brand $brand
  1016.      *
  1017.      * @return Dealer
  1018.      */
  1019.     public function setBrand(Brand $brand null)
  1020.     {
  1021.         $this->brand $brand;
  1022.         return $this;
  1023.     }
  1024.     /**
  1025.      * Get brand
  1026.      *
  1027.      * @return Brand
  1028.      */
  1029.     public function getBrand()
  1030.     {
  1031.         return $this->brand;
  1032.     }
  1033.     public function __toString()
  1034.     {
  1035.         return $this->name;
  1036.     }
  1037.     /**
  1038.      * @return string
  1039.      */
  1040.     public function getOpenTimeSaturday()
  1041.     {
  1042.         return $this->open_time_saturday;
  1043.     }
  1044.     /**
  1045.      * @param string $open_time_saturday
  1046.      *
  1047.      * @return Dealer
  1048.      */
  1049.     public function setOpenTimeSaturday($open_time_saturday)
  1050.     {
  1051.         $this->open_time_saturday $open_time_saturday;
  1052.         return $this;
  1053.     }
  1054.     /**
  1055.      * @return string
  1056.      */
  1057.     public function getCloseTimeSaturday()
  1058.     {
  1059.         return $this->close_time_saturday;
  1060.     }
  1061.     /**
  1062.      * @param string $close_time_saturday
  1063.      *
  1064.      * @return Dealer
  1065.      */
  1066.     public function setCloseTimeSaturday($close_time_saturday)
  1067.     {
  1068.         $this->close_time_saturday $close_time_saturday;
  1069.         return $this;
  1070.     }
  1071.     /**
  1072.      * @return string
  1073.      */
  1074.     public function getOpenTimeSunday()
  1075.     {
  1076.         return $this->open_time_sunday;
  1077.     }
  1078.     /**
  1079.      * @param string $open_time_sunday
  1080.      *
  1081.      * @return Dealer
  1082.      */
  1083.     public function setOpenTimeSunday($open_time_sunday)
  1084.     {
  1085.         $this->open_time_sunday $open_time_sunday;
  1086.         return $this;
  1087.     }
  1088.     /**
  1089.      * @return string
  1090.      */
  1091.     public function getCloseTimeSunday()
  1092.     {
  1093.         return $this->close_time_sunday;
  1094.     }
  1095.     /**
  1096.      * @param string $close_time_sunday
  1097.      *
  1098.      * @return Dealer
  1099.      */
  1100.     public function setCloseTimeSunday($close_time_sunday)
  1101.     {
  1102.         $this->close_time_sunday $close_time_sunday;
  1103.         return $this;
  1104.     }
  1105.     /**
  1106.      * @param Media $media
  1107.      *
  1108.      * @return $this
  1109.      */
  1110.     public function setImage(Media $media null)
  1111.     {
  1112.         $this->image $media;
  1113.         return $this;
  1114.     }
  1115.     /**
  1116.      * @return Media
  1117.      */
  1118.     public function getImage()
  1119.     {
  1120.         return $this->image;
  1121.     }
  1122.     /**
  1123.      * @return string
  1124.      */
  1125.     public function getAboutRu()
  1126.     {
  1127.         return $this->about_ru;
  1128.     }
  1129.     /**
  1130.      * @param string $about_ru
  1131.      *
  1132.      * @return $this
  1133.      */
  1134.     public function setAboutRu($about_ru)
  1135.     {
  1136.         $this->about_ru $about_ru;
  1137.         return $this;
  1138.     }
  1139.     /**
  1140.      * @return string
  1141.      */
  1142.     public function getAboutUa()
  1143.     {
  1144.         return $this->about_ua;
  1145.     }
  1146.     /**
  1147.      * @param string $about_ua
  1148.      *
  1149.      * @return $this
  1150.      */
  1151.     public function setAboutUa($about_ua)
  1152.     {
  1153.         $this->about_ua $about_ua;
  1154.         return $this;
  1155.     }
  1156.     /**
  1157.      * @param $locale
  1158.      * @return string
  1159.      */
  1160.     public function getAboutByLocale($locale 'ru')
  1161.     {
  1162.         if ($locale == 'ru') {
  1163.             return $this->getAboutRu();
  1164.         }
  1165.         return $this->getAboutUa();
  1166.     }
  1167.     /**
  1168.      * @return string
  1169.      */
  1170.     public function getCityUa()
  1171.     {
  1172.         return $this->city_ua;
  1173.     }
  1174.     /**
  1175.      * @param string $city_ua
  1176.      * @return Dealer
  1177.      */
  1178.     public function setCityUa($city_ua)
  1179.     {
  1180.         $this->city_ua $city_ua;
  1181.         return $this;
  1182.     }
  1183.     /**
  1184.      * @return string
  1185.      */
  1186.     public function getCityRu()
  1187.     {
  1188.         return $this->city_ru;
  1189.     }
  1190.     /**
  1191.      * @param string $city_ru
  1192.      * @return Dealer
  1193.      */
  1194.     public function setCityRu($city_ru)
  1195.     {
  1196.         $this->city_ru $city_ru;
  1197.         return $this;
  1198.     }
  1199.     /**
  1200.      * @param $locale
  1201.      * @return string
  1202.      */
  1203.     public function getCityByLocale($locale 'ru')
  1204.     {
  1205.         if ($locale == 'ru') {
  1206.             return $this->getCityRu();
  1207.         }
  1208.         return $this->getCityUa();
  1209.     }
  1210.     /**
  1211.      * @return int
  1212.      */
  1213.     public function getCrmUserId()
  1214.     {
  1215.         return $this->crm_user_id;
  1216.     }
  1217.     /**
  1218.      * @param int $crm_user_id
  1219.      * @return Forms
  1220.      */
  1221.     public function setCrmUserId($crm_user_id)
  1222.     {
  1223.         $this->crm_user_id $crm_user_id;
  1224.         return $this;
  1225.     }
  1226.     public function getGtmToken(): ?string
  1227.     {
  1228.         return $this->gtm_token;
  1229.     }
  1230.     public function setGtmToken(string $gtm_token): self
  1231.     {
  1232.         $this->gtm_token $gtm_token;
  1233.         return $this;
  1234.     }
  1235. }