src/Entity/Otpusk/HotelsRCache.php line 35

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Otpusk;
  3. use Doctrine\Common\Collections\ArrayCollection;
  4. use Doctrine\Common\Collections\Collection;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Repository\Otpusk\HotelsRCacheRepository")
  8.  *
  9.  * @ORM\Table(
  10.  *     name="hotelsRCache",
  11.  *     indexes={
  12.  *          @ORM\Index(name="type_romantic_rest", columns={"type_romantic_rest"}),
  13.  *          @ORM\Index(name="type_peaceful_rest", columns={"type_peaceful_rest"}),
  14.  *          @ORM\Index(name="name", columns={"name"}),
  15.  *          @ORM\Index(name="rating", columns={"rating", "reviews"}),
  16.  *          @ORM\Index(name="cat", columns={"cat"}),
  17.  *          @ORM\Index(name="id", columns={"countryId", "cityId"}),
  18.  *          @ORM\Index(name="rating_ext", columns={"rating_avg"}),
  19.  *          @ORM\Index(name="chainId", columns={"chainId"}),
  20.  *          @ORM\Index(name="stars", columns={"stars", "starsAdd"}),
  21.  *          @ORM\Index(name="type_with_children", columns={"type_with_children"}),
  22.  *          @ORM\Index(name="cityId", columns={"cityId"}),
  23.  *          @ORM\Index(name="type_with_friends", columns={"type_with_friends"}),
  24.  *          @ORM\Index(name="area", columns={"area"}),
  25.  *          @ORM\Index(name="lastDate", columns={"lastDate"}),
  26.  *          @ORM\Index(name="form", columns={"form"}),
  27.  *          @ORM\Index(name="lastOfferAt", columns={"countryId", "lastOfferAt"}),
  28.  *          @ORM\Index(name="vrein_testible_combined_1", columns={"id", "countryId", "stars"})
  29.  *     },
  30.  * )
  31.  */
  32. class HotelsRCache
  33. {
  34.     /**
  35.      * Sites' name for rating
  36.      * @var array
  37.      */
  38.     const _SITENAMES = array(
  39.         => 'tripadvisor',
  40.         => 'tophotels',
  41.         => 'booking',
  42.         => 'turpravda',
  43.     );
  44.     /**
  45.      * @ORM\Id()
  46.      * @ORM\GeneratedValue()
  47.      * @ORM\Column(name="id", type="integer", options={"unsigned"=true})
  48.      */
  49.     private $id;
  50.     /**
  51.      * @ORM\Column(type="string", length=100)
  52.      */
  53.     private $name;
  54.     /**
  55.      * @ORM\Column(type="string", length=100)
  56.      */
  57.     private $nameUkr;
  58.     /**
  59.      * @ORM\Column(type="string", length=100)
  60.      */
  61.     private $hrefName;
  62.     /**
  63.      * @ORM\Column(name="districtId", type="integer", options={"unsigned"=true}, nullable=true)
  64.      */
  65.     private $district;
  66.     /**
  67.      * @ORM\Column(type="string", length=64)
  68.      */
  69.     private $districtName;
  70.     /**
  71.      * @ORM\Column(type="string", length=64)
  72.      */
  73.     private $districtNameUkr;
  74.     /**
  75.      * @ORM\Column(type="string", length=64)
  76.      */
  77.     private $districtNameTr;
  78.     /**
  79.      * @ORM\Column(name="cityId", type="integer", options={"unsigned"=true})
  80.      */
  81.     private $city;
  82.     /**
  83.      * @ORM\Column(type="string", length=64)
  84.      */
  85.     private $cityCode;
  86.     /**
  87.      * @ORM\Column(type="string", length=64)
  88.      */
  89.     private $cityName;
  90.     /**
  91.      * @ORM\Column(type="string", length=64)
  92.      */
  93.     private $cityNameUkr;
  94.     /**
  95.      * @ORM\Column(name="provinceId", type="integer", options={"unsigned"=true}, nullable=true)
  96.      */
  97.     private $province;
  98.     /**
  99.      * @ORM\Column(type="string", length=64)
  100.      */
  101.     private $provinceName;
  102.     /**
  103.      * @ORM\Column(type="string", length=64)
  104.      */
  105.     private $provinceNameUkr;
  106.     /**
  107.      * @ORM\Column(type="string", length=64)
  108.      */
  109.     private $provinceNameTr;
  110.     /**
  111.      * @ORM\Column(name="countryId", type="smallint", options={"unsigned"=true})
  112.      */
  113.     private $country;
  114.     /**
  115.      * @ORM\Column(type="string", length=2)
  116.      */
  117.     private $countryCode;
  118.     /**
  119.      * @ORM\Column(type="string", length=64)
  120.      */
  121.     private $countryHrefName;
  122.     /**
  123.      * @ORM\Column(type="string", length=64)
  124.      */
  125.     private $countryName;
  126.     /**
  127.      * @ORM\Column(type="string", length=64)
  128.      */
  129.     private $countryNameUkr;
  130.     /**
  131.      * @ORM\Column(type="string", type="hotelsRCacheCountryVisa", nullable=true)
  132.      */
  133.     private $countryVisa;
  134.     /**
  135.      * @ORM\Column(type="string", type="hotelsRCacheCountryCurrency", nullable=false, options={"default":"usd"})
  136.      */
  137.     private $countryCurrency;
  138.     /**
  139.      * @ORM\Column(type="string", type="hotelsRCacheCountryTransport", nullable=false, options={"default"="air"})
  140.      */
  141.     private $countryTransport;
  142.     /**
  143.      * @ORM\Column(type="integer", options={"comment"="номер шарда на отпуске"})
  144.      */
  145.     private $shard;
  146.     /**
  147.      * @ORM\Column(type="text", nullable=true)
  148.      */
  149.     private $about;
  150.     /**
  151.      * @ORM\Column(type="text", nullable=true, length=65535, options={"comment"="Описание на Укрианском"})
  152.      */
  153.     private $aboutUkr;
  154.     /**
  155.      * @ORM\Column(type="text", length=65535, nullable=true)
  156.      */
  157.     private $hotelService;
  158.     /**
  159.      * @ORM\Column(type="text")
  160.      */
  161.     private $services;
  162.     /**
  163.      * @ORM\Column(type="text", nullable=true)
  164.      */
  165.     private $images;
  166.     /**
  167.      * @ORM\Column(type="smallint", nullable=false, options={"unsigned"=true})
  168.      */
  169.     private $imageCount;
  170.     /**
  171.      * @ORM\Column(type="string", length=255, nullable=true)
  172.      */
  173.     private $image;
  174.     /**
  175.      * @ORM\Column(type="text", length=65535, nullable=true)
  176.      */
  177.     private $video;
  178.     /**
  179.      * @ORM\Column(type="string", length=10, nullable=false)
  180.      */
  181.     private $stars;
  182.     /**
  183.      * @ORM\Column(type="string", length=10, nullable=true)
  184.      */
  185.     private $starsAdd;
  186.     /**
  187.      * @ORM\Column(type="string", type="hotelsRCacheCat")
  188.      */
  189.     private $cat;
  190.     /**
  191.      * @ORM\Column(type="string", type="hotelsRCacheForm")
  192.      */
  193.     private $form;
  194.     /**
  195.      * @ORM\Column(type="integer", nullable=false, options={"unsigned"=true,"comment"="площадь территории"})
  196.      */
  197.     private $area;
  198.     /**
  199.      * @ORM\Column(type="decimal", precision=8, scale=5, nullable=true)
  200.      */
  201.     private $lat;
  202.     /**
  203.      * @ORM\Column(type="decimal", precision=8, scale=5, nullable=true)
  204.      */
  205.     private $long;
  206.     /**
  207.      * @ORM\Column(type="integer", nullable=true, options={"unsigned"=true})
  208.      */
  209.     private $zoom;
  210.     /**
  211.      * @ORM\Column(type="integer", options={"unsigned"=true,"comment"="отзывы с ТП"})
  212.      */
  213.     private $reviews;
  214.     /**
  215.      * @ORM\Column(type="integer", precision=5, options={"unsigned"=true,"comment"="среднее число отзывов из базы ratings"})
  216.      */
  217.     private $reviews_avg;
  218.     /**
  219.      * @ORM\Column(type="decimal", precision=4, scale=2, options={"unsigned"=true,"comment"="рейтинг с ТП"})
  220.      */
  221.     private $rating;
  222.     /**
  223.      * @ORM\Column(type="decimal", precision=5, scale=2, nullable=true, options={"unsigned"=true,"comment"="средний рейтинг из базы ratings"})
  224.      */
  225.     private $rating_avg;
  226.     /**
  227.      * @ORM\Column(type="string", length=255, nullable=true, options={"comment"="посоветовали с ТП {people,children,seniors,busines,single}"})
  228.      */
  229.     private $rates;
  230.     /**
  231.      * @ORM\Column(name="type_with_friends", type="decimal", precision=5, scale=2, nullable=true, options={"unsigned"=true,"comment"="Тип: Отдых с друзьями из базы ratings"})
  232.      */
  233.     private $typeWithFriends;
  234.     /**
  235.      * @ORM\Column(name="type_romantic_rest", type="decimal", precision=5, scale=2, nullable=true, options={"unsigned"=true,"comment"="Тип: Отдых вдвоем из базы ratings"})
  236.      */
  237.     private $typeRomanticRest;
  238.     /**
  239.      * @ORM\Column(name="type_with_children", type="decimal", precision=5, scale=2, nullable=true, options={"unsigned"=true,"comment"="Тип: Отдых с детьми из базы ratings"})
  240.      */
  241.     private $typeWithChildren;
  242.     /**
  243.      * @ORM\Column(name="type_peaceful_rest", type="decimal", precision=5, scale=2, nullable=true, options={"unsigned"=true,"comment"="Тип: Спокойный отдых из базы ratings"})
  244.      */
  245.     private $typePeacfulRest;
  246.     /**
  247.      * @ORM\Column(type="text", nullable=true, length=65535, options={"comment"="оценки с ТП"})
  248.      */
  249.     private $votes;
  250.     /**
  251.      * @ORM\Column(type="datetime", nullable=false, options={"comment"="дата последней правки"})
  252.      */
  253.     private $lastUpdate;
  254.     /**
  255.      * @ORM\Column(name="lastDate", type="datetime", nullable=false, options={"comment"="дата последнего обновления"})
  256.      */
  257.     private $lastDate;
  258.     /**
  259.      * @ORM\Column(name="rating_by_site", type="text", nullable=true, length=65535, options={"comment"="Рейтинги по сайтам"})
  260.      */
  261.     private $ratingBySite;
  262.     /**
  263.      * @ORM\Column(type="text", length=65535, nullable=true, options={"comment"="Медали"})
  264.      */
  265.     private $badges;
  266.     /**
  267.      * @ORM\OneToMany(targetEntity="App\Entity\Otpusk\HotTravels", mappedBy="hotelsRCache")
  268.      */
  269.     private $hotTravels;
  270.     /**
  271.      * @var string
  272.      *
  273.      * @ORM\Column(name="nameAlt", type="string", length=500, nullable=false)
  274.      */
  275.     private $namealt;
  276.     /**
  277.      * @var string
  278.      *
  279.      * @ORM\Column(name="cityNamePr", type="string", length=64, nullable=false)
  280.      */
  281.     private $citynamepr;
  282.     /**
  283.      * @var string
  284.      *
  285.      * @ORM\Column(name="cityNameUkrPr", type="string", length=64, nullable=false)
  286.      */
  287.     private $citynameukrpr;
  288.     /**
  289.      * @var int|null
  290.      *
  291.      * @ORM\Column(name="chainId", type="integer", nullable=true, options={"comment"="Номер сети отелей"})
  292.      */
  293.     private $chainid;
  294.     /**
  295.      * @var string|null
  296.      *
  297.      * @ORM\Column(name="chainName", type="string", length=255, nullable=true, options={"comment"="Название сети отелей"})
  298.      */
  299.     private $chainname;
  300.     /**
  301.      * @var string|null
  302.      *
  303.      * @ORM\Column(name="offer", type="string", length=500, nullable=true, options={"comment"="минимальная цена"})
  304.      */
  305.     private $offer;
  306.     /**
  307.      * @ORM\Column(type="smallint", nullable=true)
  308.      */
  309.     private $top100city;
  310.     /**
  311.      * @ORM\Column(type="smallint", nullable=true)
  312.      */
  313.     private $top100country;
  314.     /**
  315.      * @ORM\Column(type="string", length=100)
  316.      */
  317.     private $nameEng;
  318.     /**
  319.      * @ORM\Column(type="date", options={"comment":"дата последнего получения offer-а"}, nullable=true)
  320.      */
  321.     private $lastOfferAt;
  322.     /**
  323.      * @ORM\Column(type="smallint", nullable=true)
  324.      */
  325.     private $adultAge;
  326.     public function __construct()
  327.     {
  328.         $this->hotTravels = new ArrayCollection();
  329.     }
  330.     /**
  331.      * @return Collection|HotTravels[]
  332.      */
  333.     public function getHotTravels(): Collection
  334.     {
  335.         return $this->hotTravels;
  336.     }
  337.     public function addHotTravels(HotTravels $hotTravels): self
  338.     {
  339.         if (!$this->hotTravels->contains($hotTravels)) {
  340.             $this->hotTravels[] = $hotTravels;
  341.             $hotTravels->setHotelsRCache($this);
  342.         }
  343.         return $this;
  344.     }
  345.     public function removeHotel(HotTravels $hotTravels): self
  346.     {
  347.         if ($this->hotTravels->contains($hotTravels)) {
  348.             $this->hotTravels->removeElement($hotTravels);
  349.             // set the owning side to null (unless already changed)
  350.             if ($hotTravels->getHotelsRCache() === $this) {
  351.                 $hotTravels->setHotelsRCache(null);
  352.             }
  353.         }
  354.         return $this;
  355.     }
  356.     public function getId(): ?int
  357.     {
  358.         return $this->id;
  359.     }
  360.     public function getName(): ?string
  361.     {
  362.         return $this->name;
  363.     }
  364.     public function setName(string $name): self
  365.     {
  366.         $this->name $name;
  367.         return $this;
  368.     }
  369.     public function getNameUkr(): ?string
  370.     {
  371.         return $this->nameUkr;
  372.     }
  373.     public function setNameUkr(string $nameUkr): self
  374.     {
  375.         $this->nameUkr $nameUkr;
  376.         return $this;
  377.     }
  378.     public function getHrefName(): ?string
  379.     {
  380.         return $this->hrefName;
  381.     }
  382.     public function setHrefName(string $hrefName): self
  383.     {
  384.         $this->hrefName $hrefName;
  385.         return $this;
  386.     }
  387.     public function getCity(): ?City
  388.     {
  389.         return $this->city;
  390.     }
  391.     public function setCity(?City $city): self
  392.     {
  393.         $this->city $city;
  394.         return $this;
  395.     }
  396.     public function getCityCode(): ?string
  397.     {
  398.         return $this->cityCode;
  399.     }
  400.     public function setCityCode(string $cityCode): self
  401.     {
  402.         $this->cityCode $cityCode;
  403.         return $this;
  404.     }
  405.     public function getCityName(): ?string
  406.     {
  407.         return $this->cityName;
  408.     }
  409.     public function setCityName(string $cityName): self
  410.     {
  411.         $this->cityName $cityName;
  412.         return $this;
  413.     }
  414.     public function getCityNameUkr(): ?string
  415.     {
  416.         return $this->cityNameUkr;
  417.     }
  418.     public function setCityNameUkr(string $cityNameUkr): self
  419.     {
  420.         $this->cityNameUkr $cityNameUkr;
  421.         return $this;
  422.     }
  423.     public function getCountry(): ?Country
  424.     {
  425.         return $this->country;
  426.     }
  427.     public function setCountry(?Country $country): self
  428.     {
  429.         $this->country $country;
  430.         return $this;
  431.     }
  432.     public function getCountryCode(): ?string
  433.     {
  434.         return $this->countryCode;
  435.     }
  436.     public function setCountryCode(string $countryCode): self
  437.     {
  438.         $this->countryCode $countryCode;
  439.         return $this;
  440.     }
  441.     public function getCountryHrefName(): ?string
  442.     {
  443.         return $this->countryHrefName;
  444.     }
  445.     public function setCountryHrefName(string $countryHrefName): self
  446.     {
  447.         $this->countryHrefName $countryHrefName;
  448.         return $this;
  449.     }
  450.     public function getCountryName(): ?string
  451.     {
  452.         return $this->countryName;
  453.     }
  454.     public function setCountryName(string $countryName): self
  455.     {
  456.         $this->countryName $countryName;
  457.         return $this;
  458.     }
  459.     public function getCountryNameUkr(): ?string
  460.     {
  461.         return $this->countryNameUkr;
  462.     }
  463.     public function setCountryNameUkr(string $countryNameUkr): self
  464.     {
  465.         $this->countryNameUkr $countryNameUkr;
  466.         return $this;
  467.     }
  468.     public function getCountryVisa(): ?string
  469.     {
  470.         return $this->countryVisa;
  471.     }
  472.     public function setCountryVisa(?string $countryVisa): self
  473.     {
  474.         $this->countryVisa $countryVisa;
  475.         return $this;
  476.     }
  477.     public function getCountryCurrency(): ?string
  478.     {
  479.         return $this->countryCurrency;
  480.     }
  481.     public function setCountryCurrency(string $countryCurrency): self
  482.     {
  483.         $this->countryCurrency $countryCurrency;
  484.         return $this;
  485.     }
  486.     public function getCountryTransport(): ?string
  487.     {
  488.         return $this->countryTransport;
  489.     }
  490.     public function setCountryTransport(string $countryTransport): self
  491.     {
  492.         $this->countryTransport $countryTransport;
  493.         return $this;
  494.     }
  495.     public function getShard(): ?int
  496.     {
  497.         return $this->shard;
  498.     }
  499.     public function setShard(int $shard): self
  500.     {
  501.         $this->shard $shard;
  502.         return $this;
  503.     }
  504.     public function getAbout(): ?string
  505.     {
  506.         return $this->about;
  507.     }
  508.     public function setAbout(?string $about): self
  509.     {
  510.         $this->about $about;
  511.         return $this;
  512.     }
  513.     public function getAboutUkr(): ?string
  514.     {
  515.         return $this->aboutUkr;
  516.     }
  517.     public function setAboutUkr(?string $aboutUkr): self
  518.     {
  519.         $this->aboutUkr $aboutUkr;
  520.         return $this;
  521.     }
  522.     public function getHotelService(): ?string
  523.     {
  524.         return $this->hotelService;
  525.     }
  526.     public function setHotelService(string $hotelService): self
  527.     {
  528.         $this->hotelService $hotelService;
  529.         return $this;
  530.     }
  531.     public function getServices(): ?string
  532.     {
  533.         return $this->services;
  534.     }
  535.     public function setServices(string $services): self
  536.     {
  537.         $this->services $services;
  538.         return $this;
  539.     }
  540.     public function getImages(): ?string
  541.     {
  542.         return $this->images;
  543.     }
  544.     public function setImages(?string $images): self
  545.     {
  546.         $this->images $images;
  547.         return $this;
  548.     }
  549.     public function getImageCount(): ?int
  550.     {
  551.         return $this->imageCount;
  552.     }
  553.     public function setImageCount(int $imageCount): self
  554.     {
  555.         $this->imageCount $imageCount;
  556.         return $this;
  557.     }
  558.     public function getImage(): ?string
  559.     {
  560.         return $this->image;
  561.     }
  562.     public function setImage(string $image): self
  563.     {
  564.         $this->image $image;
  565.         return $this;
  566.     }
  567.     public function getVideo(): ?string
  568.     {
  569.         return $this->video;
  570.     }
  571.     public function setVideo(string $video): self
  572.     {
  573.         $this->video $video;
  574.         return $this;
  575.     }
  576.     public function getStars(): ?string
  577.     {
  578.         return $this->stars;
  579.     }
  580.     public function setStars(string $stars): self
  581.     {
  582.         $this->stars $stars;
  583.         return $this;
  584.     }
  585.     public function getStarsAdd(): ?string
  586.     {
  587.         return $this->starsAdd;
  588.     }
  589.     public function setStarsAdd(?string $starsAdd): self
  590.     {
  591.         $this->starsAdd $starsAdd;
  592.         return $this;
  593.     }
  594.     public function getCat(): ?string
  595.     {
  596.         return $this->cat;
  597.     }
  598.     public function setCat(string $cat): self
  599.     {
  600.         $this->cat $cat;
  601.         return $this;
  602.     }
  603.     public function getForm(): ?string
  604.     {
  605.         return $this->form;
  606.     }
  607.     public function setForm(string $form): self
  608.     {
  609.         $this->form $form;
  610.         return $this;
  611.     }
  612.     public function getArea(): ?int
  613.     {
  614.         return $this->area;
  615.     }
  616.     public function setArea(int $area): self
  617.     {
  618.         $this->area $area;
  619.         return $this;
  620.     }
  621.     public function getLat(): ?string
  622.     {
  623.         return $this->lat;
  624.     }
  625.     public function setLat(?string $lat): self
  626.     {
  627.         $this->lat $lat;
  628.         return $this;
  629.     }
  630.     public function getLong(): ?string
  631.     {
  632.         return $this->long;
  633.     }
  634.     public function setLong(?string $long): self
  635.     {
  636.         $this->long $long;
  637.         return $this;
  638.     }
  639.     public function getZoom(): ?int
  640.     {
  641.         return $this->zoom;
  642.     }
  643.     public function setZoom(?int $zoom): self
  644.     {
  645.         $this->zoom $zoom;
  646.         return $this;
  647.     }
  648.     public function getReviews(): ?int
  649.     {
  650.         return $this->reviews;
  651.     }
  652.     public function setReviews(int $reviews): self
  653.     {
  654.         $this->reviews $reviews;
  655.         return $this;
  656.     }
  657.     public function getReviewsAvg(): ?int
  658.     {
  659.         return $this->reviews_avg;
  660.     }
  661.     public function getRating(): ?string
  662.     {
  663.         return $this->rating;
  664.     }
  665.     public function setRating(string $rating): self
  666.     {
  667.         $this->rating $rating;
  668.         return $this;
  669.     }
  670.     public function getRatingAvg(): ?string
  671.     {
  672.         return $this->rating_avg;
  673.     }
  674.     public function setRatingAvg(string $rating_avg): self
  675.     {
  676.         $this->rating_avg $rating_avg;
  677.         return $this;
  678.     }
  679.     public function getRates(): ?string
  680.     {
  681.         return $this->rates;
  682.     }
  683.     public function setRates(string $rates): self
  684.     {
  685.         $this->rates $rates;
  686.         return $this;
  687.     }
  688.     public function getTypeWithFriends(): ?string
  689.     {
  690.         return $this->typeWithFriends;
  691.     }
  692.     public function setTypeWithFriends(string $typeWithFriends): self
  693.     {
  694.         $this->typeWithFriends $typeWithFriends;
  695.         return $this;
  696.     }
  697.     public function getTypeRomanticRest(): ?string
  698.     {
  699.         return $this->typeRomanticRest;
  700.     }
  701.     public function setTypeRomanticRest(string $typeRomanticRest): self
  702.     {
  703.         $this->typeRomanticRest $typeRomanticRest;
  704.         return $this;
  705.     }
  706.     public function getTypeWithChildren(): ?string
  707.     {
  708.         return $this->typeWithChildren;
  709.     }
  710.     public function setTypeWithChildren(string $typeWithChildren): self
  711.     {
  712.         $this->typeWithChildren $typeWithChildren;
  713.         return $this;
  714.     }
  715.     public function getTypePeacfulRest(): ?string
  716.     {
  717.         return $this->typePeacfulRest;
  718.     }
  719.     public function setTypePeacfulRest(string $typePeacfulRest): self
  720.     {
  721.         $this->typePeacfulRest $typePeacfulRest;
  722.         return $this;
  723.     }
  724.     public function getVotes(): ?string
  725.     {
  726.         return $this->votes;
  727.     }
  728.     public function setVotes(?string $votes): self
  729.     {
  730.         $this->votes $votes;
  731.         return $this;
  732.     }
  733.     public function getLastUpdate(): ?\DateTimeInterface
  734.     {
  735.         return $this->lastUpdate;
  736.     }
  737.     public function setLastUpdate(\DateTimeInterface $lastUpdate): self
  738.     {
  739.         $this->lastUpdate $lastUpdate;
  740.         return $this;
  741.     }
  742.     public function getLastDate(): ?\DateTimeInterface
  743.     {
  744.         return $this->lastDate;
  745.     }
  746.     public function setLastDate(\DateTimeInterface $lastDate): self
  747.     {
  748.         $this->lastDate $lastDate;
  749.         return $this;
  750.     }
  751.     public function getRatingBySite(): ?string
  752.     {
  753.         return $this->ratingBySite;
  754.     }
  755.     public function setRatingBySite(?string $ratingBySite): self
  756.     {
  757.         $this->ratingBySite $ratingBySite;
  758.         return $this;
  759.     }
  760.     public function __toString()
  761.     {
  762.         return $this->getName();
  763.     }
  764.     public function getStarsImg()
  765.     {
  766.         return str_repeat('☆', (int)$this->getStars());
  767.     }
  768.     public function getRatingBySiteString()
  769.     {
  770.         $ratings unserialize($this->ratingBySite);
  771.         $str '';
  772.         if(is_array($ratings)){
  773.             foreach ($ratings as $key => $rating) {
  774.                 if(array_key_exists($rating['site_id'], self::_SITENAMES)){
  775.                     $str .= self::_SITENAMES[$rating['site_id']] . ' => ' $rating['rating'] . ' из ' $rating['reviews'] . ' отзывов; ';
  776.                 }
  777.             }
  778.         }
  779.         return $str;
  780.     }
  781.     public function getBadges(): ?string
  782.     {
  783.         return $this->badges;
  784.     }
  785.     public function setBadges(?string $badges): self
  786.     {
  787.         $this->badges $badges;
  788.         return $this;
  789.     }
  790.     public function getDistrict(): ?int
  791.     {
  792.         return $this->district;
  793.     }
  794.     public function setDistrict(?int $districtId): self
  795.     {
  796.         $this->district $districtId;
  797.         return $this;
  798.     }
  799.     public function getProvinced(): ?int
  800.     {
  801.         return $this->province;
  802.     }
  803.     public function setProvince(?int $provinceId): self
  804.     {
  805.         $this->province $provinceId;
  806.         return $this;
  807.     }
  808.     public function getDistrictName(): ?string
  809.     {
  810.         return $this->districtName;
  811.     }
  812.     public function setDistrictName(?string $districtName): self
  813.     {
  814.         $this->districtName $districtName;
  815.         return $this;
  816.     }
  817.     public function getProvinceName(): ?string
  818.     {
  819.         return $this->provinceName;
  820.     }
  821.     public function setProvinceName(?string $provinceName): self
  822.     {
  823.         $this->provinceName $provinceName;
  824.         return $this;
  825.     }
  826.     public function getDistrictNameUkr(): ?string
  827.     {
  828.         return $this->districtNameUkr;
  829.     }
  830.     public function setDistrictNameUkr(?string $districtNameUkr): self
  831.     {
  832.         $this->districtNameUkr $districtNameUkr;
  833.         return $this;
  834.     }
  835.     public function getProvinceNameUkr(): ?string
  836.     {
  837.         return $this->provinceNameUkr;
  838.     }
  839.     public function setProvinceNameUkr(?string $provinceNameUkr): self
  840.     {
  841.         $this->provinceNameUkr $provinceNameUkr;
  842.         return $this;
  843.     }
  844.     public function getProvinceNameTr(): ?string
  845.     {
  846.         return $this->provinceNameTr;
  847.     }
  848.     public function setProvinceNameTr(string $provinceNameTr): self
  849.     {
  850.         $this->provinceNameTr $provinceNameTr;
  851.         return $this;
  852.     }
  853.     public function getDistrictNameTr(): ?string
  854.     {
  855.         return $this->districtNameTr;
  856.     }
  857.     public function setDistrictNameTr(string $districtNameTr): self
  858.     {
  859.         $this->districtNameTr $districtNameTr;
  860.         return $this;
  861.     }
  862.     public function getTop100city(): ?int
  863.     {
  864.         return $this->top100city;
  865.     }
  866.     public function setTop100city(?int $top100city): self
  867.     {
  868.         $this->top100city $top100city;
  869.         return $this;
  870.     }
  871.     public function getTop100country(): ?int
  872.     {
  873.         return $this->top100country;
  874.     }
  875.     public function setTop100country(?int $top100country): self
  876.     {
  877.         $this->top100country $top100country;
  878.         return $this;
  879.     }
  880.     public function getNameEng(): ?string
  881.     {
  882.         return $this->nameEng;
  883.     }
  884.     public function setNameEng(string $nameEng): self
  885.     {
  886.         $this->nameEng $nameEng;
  887.         return $this;
  888.     }
  889.     public function getLastOfferAt(): ?\DateTimeInterface
  890.     {
  891.         return $this->lastOfferAt;
  892.     }
  893.     public function setLastOfferAt(?\DateTimeInterface $lastOfferAt): self
  894.     {
  895.         $this->lastOfferAt $lastOfferAt;
  896.         return $this;
  897.     }
  898.     public function getAdultAge(): ?int
  899.     {
  900.         return $this->adultAge;
  901.     }
  902.     public function setAdultAge(?int $adultAge): self
  903.     {
  904.         $this->adultAge $adultAge;
  905.         return $this;
  906.     }
  907. }