src/Entity/Otpusk/HotTravels.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Otpusk;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * @ORM\Entity(repositoryClass="App\Repository\Otpusk\HotTravelsRepository")
  6.  *
  7.  * @ORM\Table(
  8.  *     name="tHotTravels",
  9.  *     options={
  10.  *          "charset":"utf8",
  11.  *          "engine": "InnoDB",
  12.  *          "comment":"Горящие туры"
  13.  *     },
  14.  *     indexes={@ORM\Index(name="fType", columns={"fType", "fBaseCountryID", "fShow", "fPosition", "fPrice"}), @ORM\Index(name="fGeo", columns={"fTourID"})},
  15.  * )
  16.  */
  17. class HotTravels
  18. {
  19.     /**
  20.      * @var int
  21.      *
  22.      * @ORM\Column(name="rec_id", type="smallint", nullable=false, options={"unsigned"=true})
  23.      * @ORM\Id
  24.      * @ORM\GeneratedValue(strategy="IDENTITY")
  25.      */
  26.     private $id;
  27.     /**
  28.      * @var int
  29.      *
  30.      * @ORM\Column(name="fBaseCountryID", type="integer", nullable=false, options={"default"="116","comment"="страна"})
  31.      */
  32.     private $baseCountryId '116';
  33.     /**
  34.      * @var string
  35.      *
  36.      * @ORM\Column(name="fType", type="string", length=0, nullable=false)
  37.      */
  38.     private $type;
  39.     /**
  40.      * @var string
  41.      *
  42.      * @ORM\Column(name="fShow", type="string", length=0, nullable=true, options={"comment"="демонстрировать на странице"}, columnDefinition="set('main', 'tour', 'excursion') DEFAULT NULL COMMENT 'демонстрировать на странице'")
  43.      */
  44.     private $show;
  45.     /**
  46.      * @var \DateTime
  47.      *
  48.      * @ORM\Column(name="fSave", type="datetime", nullable=false)
  49.      */
  50.     private $save;
  51.     /**
  52.      * @var int
  53.      *
  54.      * @ORM\Column(name="fTourID", type="string", length=25, nullable=false, options={"comment"="номер тура"})
  55.      */
  56.     private $tourId;
  57.     /**
  58.      * @var \DateTime|null
  59.      *
  60.      * @ORM\Column(name="fOpen", type="datetime", nullable=true, options={"comment"="дата показа на сайте"})
  61.      */
  62.     private $open;
  63.     /**
  64.      * @var \DateTime|null
  65.      *
  66.      * @ORM\Column(name="fClose", type="datetime", nullable=true, options={"comment"="дата завершения"})
  67.      */
  68.     private $close;
  69.     /**
  70.      * @var int
  71.      *
  72.      * @ORM\Column(name="fPosition", type="smallint", nullable=false, options={"default":"0", "comment"="позиция блока"})
  73.      */
  74.     private $position '0';
  75.     /**
  76.      * @var string
  77.      *
  78.      * @ORM\Column(name="fName", type="string", length=80, nullable=false)
  79.      */
  80.     private $name;
  81.     /**
  82.      * @var string
  83.      *
  84.      * @ORM\Column(name="fNameUkr", type="string", length=80, nullable=false)
  85.      */
  86.     private $nameUkr;
  87.     /**
  88.      * @ORM\Column(name="fNameEng", type="string", length=120, nullable=false)
  89.      */
  90.     private $nameEng;
  91.     /**
  92.      * @ORM\Column(name="fNameBy", type="string", length=120, nullable=false)
  93.      */
  94.     private $nameBy;
  95.     /**
  96.      * @ORM\Column(name="fNameEe", type="string", length=120, nullable=false)
  97.      */
  98.     private $nameEe;
  99.     /**
  100.      * @ORM\Column(name="fNameLt", type="string", length=120, nullable=false)
  101.      */
  102.     private $nameLt;
  103.     /**
  104.      * @ORM\Column(name="fNameLv", type="string", length=120, nullable=false)
  105.      */
  106.     private $nameLv;
  107.     /**
  108.      * @ORM\Column(name="fNamePl", type="string", length=120)
  109.      */
  110.     private $namePl;
  111.     /**
  112.      * @ORM\Column(name="fNameUz", type="string", length=120)
  113.      */
  114.     private $nameUz;
  115.     /**
  116.      * @ORM\Column(name="fNameRo", type="string", length=120)
  117.      */
  118.     private $nameRo;
  119.     /**
  120.      * @var string
  121.      *
  122.      * @ORM\Column(name="fUrl", type="string", length=600, nullable=false)
  123.      */
  124.     private $url;
  125.     /**
  126.      * @var string
  127.      *
  128.      * @ORM\Column(name="fDescription", type="text", length=65535, nullable=false)
  129.      */
  130.     private $description;
  131.     /**
  132.      * @var int
  133.      *
  134.      * @ORM\Column(name="fOperatorID", type="smallint", nullable=false, options={"unsigned"=true,"comment"="туроператор"})
  135.      */
  136.     private $operatorId;
  137.     /**
  138.      * @ORM\Column(name="fFromCityID", type="integer", options={"default"="1544","unsigned"=true,"comment"="город отправления"})
  139.      */
  140.     private $fromCityId;
  141.     /**
  142.      * @var int
  143.      *
  144.      * @ORM\Column(name="fCategoryID", type="smallint", nullable=false, options={"unsigned"=true,"comment"="Категория"})
  145.      */
  146.     private $categoryId;
  147.     /**
  148.      * @var int
  149.      *
  150.      * @ORM\Column(name="fHotelID", type="integer", nullable=false, options={"unsigned"=true})
  151.      */
  152.     private $hotelId;
  153.     /**
  154.      * @var string
  155.      *
  156.      * @ORM\Column(name="fStars", type="string", length=0, nullable=false)
  157.      */
  158.     private $stars;
  159.     /**
  160.      * @var string
  161.      *
  162.      * @ORM\Column(name="fCurrency", type="string", length=0, nullable=false, options={"default"="usd"})
  163.      */
  164.     private $currency 'usd';
  165.     /**
  166.      * @var string
  167.      *
  168.      * @ORM\Column(name="fPrice", type="decimal", precision=8, scale=2, nullable=false, options={"unsigned"=true})
  169.      */
  170.     private $price;
  171.     /**
  172.      * @var string
  173.      *
  174.      * @ORM\Column(name="fAcmd", type="string", length=0, nullable=false, options={"default"="dbl"})
  175.      */
  176.     private $acmd 'dbl';
  177.     /**
  178.      * @var string
  179.      *
  180.      * @ORM\Column(name="fFood", type="string", length=0, nullable=false)
  181.      */
  182.     private $food;
  183. //@ORM\Column(name="fFoods", type="simple_array", length=0, nullable=true, options={"comment"="выборка по питанию"})
  184.     /**
  185.      * @ORM\Column(name="fFoods", type="string", length=64, nullable=true, options={"comment"="выборка по питанию"})
  186.      */
  187.     private $foods;
  188.     /**
  189.      * @var string
  190.      *
  191.      * @ORM\Column(name="fTransport", type="string", length=0, nullable=false)
  192.      */
  193.     private $transport;
  194.     /**
  195.      * @var \DateTime
  196.      *
  197.      * @ORM\Column(name="fDate", type="date", nullable=false, options={"comment"="дата которая показывается на сайте"})
  198.      */
  199.     private $date;
  200.     /**
  201.      * @var \DateTime
  202.      *
  203.      * @ORM\Column(name="fDateFrom", type="date", nullable=false, options={"comment"="интервал поиска цены"})
  204.      */
  205.     private $dateFrom;
  206.     /**
  207.      * @var \DateTime
  208.      *
  209.      * @ORM\Column(name="fDateTo", type="date", nullable=false, options={"comment"="интервал поиска цены"})
  210.      */
  211.     private $dateTo;
  212.     /**
  213.      * @var smallint
  214.      *
  215.      * @ORM\Column(name="fLength", type="smallint", nullable=false, options={"comment"="длительность которая показывается на сайте"})
  216.      */
  217.     private $length;
  218.     /**
  219.      * @var smallint
  220.      *
  221.      * @ORM\Column(name="fLengthFrom", type="smallint", nullable=false, options={"comment"="интервал поиска цены"})
  222.      */
  223.     private $lengthFrom;
  224.     /**
  225.      * @var smallint
  226.      *
  227.      * @ORM\Column(name="fLengthTo", type="smallint", nullable=false, options={"comment"="интервал поиска цены"})
  228.      */
  229.     private $lengthTo;
  230.     /**
  231.      * @var string
  232.      *
  233.      * @ORM\Column(name="fSort", type="string", length=0, nullable=false, options={"default"="idx"})
  234.      */
  235.     private $sort 'idx';
  236.     /**
  237.      * @var string
  238.      *
  239.      * @ORM\Column(name="fNoStat", type="string", length=0, nullable=false, options={"default"="no"})
  240.      */
  241.     private $noStat 'no';
  242.     /**
  243.      * @var string
  244.      *
  245.      * @ORM\Column(name="fImage", type="string", length=200, nullable=false)
  246.      */
  247.     private $image;
  248.     /**
  249.      * @var string
  250.      *
  251.      * @ORM\Column(name="fImageSize", type="string", length=20, nullable=false, options={"comment"="через запятую"})
  252.      */
  253.     private $imageSize;
  254.     /**
  255.      * @var string
  256.      *
  257.      * @ORM\Column(name="fImageSmall", type="string", length=200, nullable=false)
  258.      */
  259.     private $imageSmall;
  260.     /**
  261.      * @var string
  262.      *
  263.      * @ORM\Column(name="fImageSmallSize", type="string", length=20, nullable=false, options={"comment"="через запятую"})
  264.      */
  265.     private $imageSmallSize;
  266.     /**
  267.      * @var \DateTime
  268.      *
  269.      * @ORM\Column(name="lastUpdate", type="datetime", nullable=false, options={"default"="CURRENT_TIMESTAMP"})
  270.      */
  271.     private $lastUpdate 'CURRENT_TIMESTAMP';
  272.     /**
  273.      * @ORM\ManyToOne(targetEntity="App\Entity\Otpusk\HotelsRCache", inversedBy="hotTravels")
  274.      * @ORM\JoinColumn(name="fHotelID", referencedColumnName="id", nullable=true)
  275.      */
  276.     private $hotelsRCache;
  277.     /**
  278.      * @var string|null
  279.      *
  280.      * @ORM\Column(name="fPriceUah", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned"=true})
  281.      */
  282.     private $priceUah;
  283.     /**
  284.      * @ORM\Column(name="fPriceUsd", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned"=true})
  285.      */
  286.     private $priceUsd;
  287.     /**
  288.      * @ORM\Column(name="fPriceEur", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned"=true})
  289.      */
  290.     private $priceEur;
  291.     /**
  292.      * @ORM\Column(name="fPriceMdl", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned"=true})
  293.      */
  294.     private $priceMdl;
  295.     /**
  296.      * @ORM\Column(name="fPricePln", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned"=true})
  297.      */
  298.     private $pricePln;
  299.     /**
  300.      * @ORM\Column(name="fPriceUzs", type="decimal", precision=12, scale=2, nullable=true, options={"unsigned"=true})
  301.      */
  302.     private $priceUzs;
  303.     public function __toString()
  304.     {
  305.         return 'Горящие ' $this->getName();
  306.     }
  307.     public function getHotelsRCache(): ?HotelsRCache
  308.     {
  309.         return $this->hotelsRCache;
  310.     }
  311.     public function setHotelsRCache(?HotelsRCache $hotelsRCache): self
  312.     {
  313.         $this->hotelsRCache $hotelsRCache;
  314.         return $this;
  315.     }
  316.     public function getId(): ?int
  317.     {
  318.         return $this->id;
  319.     }
  320.     public function getBaseCountryId(): ?int
  321.     {
  322.         return $this->baseCountryId;
  323.     }
  324.     public function setBaseCountryId(int $baseCountryId): self
  325.     {
  326.         $this->baseCountryId $baseCountryId;
  327.         return $this;
  328.     }
  329.     public function getType(): ?string
  330.     {
  331.         return $this->type;
  332.     }
  333.     public function setType(string $type): self
  334.     {
  335.         $this->type $type;
  336.         return $this;
  337.     }
  338.     public function getShow(): ?array
  339.     {
  340.         return $this->show;
  341.     }
  342.     public function setShow(?array $show): self
  343.     {
  344.         $this->show $show;
  345.         return $this;
  346.     }
  347.     public function getSave(): ?\DateTimeInterface
  348.     {
  349.         return $this->save;
  350.     }
  351.     public function setSave(\DateTimeInterface $save): self
  352.     {
  353.         $this->save $save;
  354.         return $this;
  355.     }
  356.     public function getTourId(): ?int
  357.     {
  358.         return $this->tourId;
  359.     }
  360.     public function setTourId(int $tourId): self
  361.     {
  362.         $this->tourId $tourId;
  363.         return $this;
  364.     }
  365.     public function getOpen(): ?\DateTimeInterface
  366.     {
  367.         return $this->open;
  368.     }
  369.     public function setOpen(?\DateTimeInterface $open): self
  370.     {
  371.         $this->open $open;
  372.         return $this;
  373.     }
  374.     public function getClose(): ?\DateTimeInterface
  375.     {
  376.         return $this->close;
  377.     }
  378.     public function setClose(?\DateTimeInterface $close): self
  379.     {
  380.         $this->close $close;
  381.         return $this;
  382.     }
  383.     public function getPosition(): ?int
  384.     {
  385.         return $this->position;
  386.     }
  387.     public function setPosition(int $position): self
  388.     {
  389.         $this->position $position;
  390.         return $this;
  391.     }
  392.     public function getName(): ?string
  393.     {
  394.         return $this->name;
  395.     }
  396.     public function setName(string $name): self
  397.     {
  398.         $this->name $name;
  399.         return $this;
  400.     }
  401.     public function getNameUkr(): ?string
  402.     {
  403.         return $this->nameUkr;
  404.     }
  405.     public function setNameUkr(string $nameUkr): self
  406.     {
  407.         $this->nameUkr $nameUkr;
  408.         return $this;
  409.     }
  410.     public function getNameEng(): ?string
  411.     {
  412.         return $this->nameEng;
  413.     }
  414.     public function setNameEng(string $nameEng): self
  415.     {
  416.         $this->nameEng $nameEng;
  417.         return $this;
  418.     }
  419.     public function getNameBy(): ?string
  420.     {
  421.         return $this->nameBy;
  422.     }
  423.     public function setNameBy(string $nameBy): self
  424.     {
  425.         $this->nameBy $nameBy;
  426.         return $this;
  427.     }
  428.     public function getNameEe(): ?string
  429.     {
  430.         return $this->nameEe;
  431.     }
  432.     public function setNameEe(string $nameEe): self
  433.     {
  434.         $this->nameEe $nameEe;
  435.         return $this;
  436.     }
  437.     public function getNameLt(): ?string
  438.     {
  439.         return $this->nameLt;
  440.     }
  441.     public function setNameLt(string $nameLt): self
  442.     {
  443.         $this->nameLt $nameLt;
  444.         return $this;
  445.     }
  446.     public function getNameLv(): ?string
  447.     {
  448.         return $this->nameLv;
  449.     }
  450.     public function setNameLv(string $nameLv): self
  451.     {
  452.         $this->nameLv $nameLv;
  453.         return $this;
  454.     }
  455.     public function getNamePl(): ?string
  456.     {
  457.         return $this->namePl;
  458.     }
  459.     public function setNamePl(string $namePl): self
  460.     {
  461.         $this->namePl $namePl;
  462.         return $this;
  463.     }
  464.     public function getNameUz(): ?string
  465.     {
  466.         return $this->nameUz;
  467.     }
  468.     public function setNameUz(string $nameUz): self
  469.     {
  470.         $this->nameUz $nameUz;
  471.         return $this;
  472.     }
  473.     public function getNameRo(): ?string
  474.     {
  475.         return $this->nameRo;
  476.     }
  477.     public function setNameRo(string $nameRo): self
  478.     {
  479.         $this->nameRo $nameRo;
  480.         return $this;
  481.     }
  482.     public function getUrl(): ?string
  483.     {
  484.         return $this->url;
  485.     }
  486.     public function setUrl(string $url): self
  487.     {
  488.         $this->url $url;
  489.         return $this;
  490.     }
  491.     public function getDescription(): ?string
  492.     {
  493.         return $this->description;
  494.     }
  495.     public function setDescription(string $description): self
  496.     {
  497.         $this->description $description;
  498.         return $this;
  499.     }
  500.     public function getOperatorId(): ?int
  501.     {
  502.         return $this->operatorId;
  503.     }
  504.     public function setOperatorId(int $operatorId): self
  505.     {
  506.         $this->operatorId $operatorId;
  507.         return $this;
  508.     }
  509.     public function getFromCityId(): ?int
  510.     {
  511.         return $this->fFromCityId;
  512.     }
  513.     public function setFromCityId(int $fFromCityId): self
  514.     {
  515.         $this->fFromCityId $fFromCityId;
  516.         return $this;
  517.     }
  518.     public function getHotelId(): ?int
  519.     {
  520.         return $this->hotelId;
  521.     }
  522.     public function setHotelId(int $hotelId): self
  523.     {
  524.         $this->hotelId $hotelId;
  525.         return $this;
  526.     }
  527.     public function getStars(): ?string
  528.     {
  529.         return $this->stars;
  530.     }
  531.     public function setStars(string $stars): self
  532.     {
  533.         $this->stars $stars;
  534.         return $this;
  535.     }
  536.     public function getCurrency(): ?string
  537.     {
  538.         return $this->currency;
  539.     }
  540.     public function setCurrency(string $currency): self
  541.     {
  542.         $this->currency $currency;
  543.         return $this;
  544.     }
  545.     public function getPrice(): ?float
  546.     {
  547.         return $this->price;
  548.     }
  549.     public function setPrice(float $price): self
  550.     {
  551.         $this->price $price;
  552.         return $this;
  553.     }
  554.     public function getPriceUah(): ?float
  555.     {
  556.         return $this->priceUah;
  557.     }
  558.     public function setPriceUah(?float $priceUah): self
  559.     {
  560.         $this->priceUah $priceUah;
  561.         return $this;
  562.     }
  563.     public function getPriceUsd(): ?float
  564.     {
  565.         return $this->priceUsd;
  566.     }
  567.     public function setPriceUsd(?float $priceUsd): self
  568.     {
  569.         $this->priceUsd $priceUsd;
  570.         return $this;
  571.     }
  572.     public function getPriceEur(): ?float
  573.     {
  574.         return $this->priceEur;
  575.     }
  576.     public function setPriceEur(?float $priceEur): self
  577.     {
  578.         $this->priceEur $priceEur;
  579.         return $this;
  580.     }
  581.     public function getPriceMdl(): ?float
  582.     {
  583.         return $this->priceMdl;
  584.     }
  585.     public function setPriceMdl(?float $priceMdl): self
  586.     {
  587.         $this->priceMdl $priceMdl;
  588.         return $this;
  589.     }
  590.     public function getPricePln(): ?float
  591.     {
  592.         return $this->pricePln;
  593.     }
  594.     public function setPricePln(?float $pricePln): self
  595.     {
  596.         $this->pricePln $pricePln;
  597.         return $this;
  598.     }
  599.     public function getPriceUzs(): ?float
  600.     {
  601.         return $this->priceUzs;
  602.     }
  603.     public function setPriceUzs(?float $priceUzs): self
  604.     {
  605.         $this->priceUzs $priceUzs;
  606.         return $this;
  607.     }
  608.     public function getAcmd(): ?string
  609.     {
  610.         return $this->acmd;
  611.     }
  612.     public function setAcmd(string $acmd): self
  613.     {
  614.         $this->acmd $acmd;
  615.         return $this;
  616.     }
  617.     public function getFood(): ?string
  618.     {
  619.         return $this->food;
  620.     }
  621.     public function setFood(string $food): self
  622.     {
  623.         $this->food $food;
  624.         return $this;
  625.     }
  626.     public function getFoods(): ?array
  627.     {
  628.         return $this->foods;
  629.     }
  630.     public function setFoods(?array $foods): self
  631.     {
  632.         $this->foods $foods;
  633.         return $this;
  634.     }
  635.     public function getTransport(): ?string
  636.     {
  637.         return $this->transport;
  638.     }
  639.     public function setTransport(string $transport): self
  640.     {
  641.         $this->transport $transport;
  642.         return $this;
  643.     }
  644.     public function getDate(): ?\DateTimeInterface
  645.     {
  646.         return $this->date;
  647.     }
  648.     public function setDate(\DateTimeInterface $date): self
  649.     {
  650.         $this->date $date;
  651.         return $this;
  652.     }
  653.     public function getDateFrom(): ?\DateTimeInterface
  654.     {
  655.         return $this->dateFrom;
  656.     }
  657.     public function setDateFrom(\DateTimeInterface $dateFrom): self
  658.     {
  659.         $this->dateFrom $dateFrom;
  660.         return $this;
  661.     }
  662.     public function getDateTo(): ?\DateTimeInterface
  663.     {
  664.         return $this->dateTo;
  665.     }
  666.     public function setDateTo(\DateTimeInterface $dateTo): self
  667.     {
  668.         $this->dateTo $dateTo;
  669.         return $this;
  670.     }
  671.     public function getLength(): ?int
  672.     {
  673.         return $this->length;
  674.     }
  675.     public function setLength(int $length): self
  676.     {
  677.         $this->length $length;
  678.         return $this;
  679.     }
  680.     public function getLengthFrom(): ?int
  681.     {
  682.         return $this->lengthFrom;
  683.     }
  684.     public function setLengthFrom(int $lengthFrom): self
  685.     {
  686.         $this->lengthFrom $lengthFrom;
  687.         return $this;
  688.     }
  689.     public function getLengthTo(): ?int
  690.     {
  691.         return $this->lengthTo;
  692.     }
  693.     public function setLengthTo(int $lengthTo): self
  694.     {
  695.         $this->lengthTo $lengthTo;
  696.         return $this;
  697.     }
  698.     public function getSort(): ?string
  699.     {
  700.         return $this->sort;
  701.     }
  702.     public function setSort(string $sort): self
  703.     {
  704.         $this->sort $sort;
  705.         return $this;
  706.     }
  707.     public function getNoStat(): ?string
  708.     {
  709.         return $this->noStat;
  710.     }
  711.     public function setNoStat(string $noStat): self
  712.     {
  713.         $this->noStat $noStat;
  714.         return $this;
  715.     }
  716.     public function getImage(): ?string
  717.     {
  718.         return $this->image;
  719.     }
  720.     public function setImage(string $image): self
  721.     {
  722.         $this->image $image;
  723.         return $this;
  724.     }
  725.     public function getImageSize(): ?string
  726.     {
  727.         return $this->imageSize;
  728.     }
  729.     public function setImageSize(string $imageSize): self
  730.     {
  731.         $this->imageSize $imageSize;
  732.         return $this;
  733.     }
  734.     public function getImageSmall(): ?string
  735.     {
  736.         return $this->imageSmall;
  737.     }
  738.     public function setImageSmall(string $imageSmall): self
  739.     {
  740.         $this->imageSmall $imageSmall;
  741.         return $this;
  742.     }
  743.     public function getImageSmallSize(): ?string
  744.     {
  745.         return $this->imageSmallSize;
  746.     }
  747.     public function setImageSmallSize(string $imageSmallSize): self
  748.     {
  749.         $this->imageSmallSize $imageSmallSize;
  750.         return $this;
  751.     }
  752.     public function getLastUpdate(): ?\DateTimeInterface
  753.     {
  754.         return $this->lastUpdate;
  755.     }
  756.     public function setLastUpdate(\DateTimeInterface $lastUpdate): self
  757.     {
  758.         $this->lastUpdate $lastUpdate;
  759.         return $this;
  760.     }
  761.     public function getCategoryId(): ?string
  762.     {
  763.         return $this->categoryId;
  764.     }
  765.     public function setCategory(?string $categoryId): self
  766.     {
  767.         $this->categoryId $categoryId;
  768.         return $this;
  769.     }
  770. }