src/Entity/Otpusk/SelectionCriteria.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Otpusk;
  3. use App\Repository\Otpusk\SelectionCriteriaRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=SelectionCriteriaRepository::class)
  8.  */
  9. class SelectionCriteria
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255)
  19.      */
  20.     private $name;
  21.     /**
  22.      * @ORM\ManyToOne(targetEntity="App\Entity\Otpusk\Selection", inversedBy="criteries")
  23.      * @ORM\JoinColumn(name="selection_id", referencedColumnName="id", nullable=false, onDelete="CASCADE")
  24.      */
  25.     private $selection;
  26.     /**
  27.      * @ORM\Column(type="integer", nullable=false)
  28.      */
  29.     private $hotelId;
  30.     /**
  31.      * @ORM\Column(type="integer", nullable=false)
  32.      */
  33.     private $hotelSelect;
  34.     /**
  35.      * @ORM\Column(type="string", nullable=false)
  36.      */
  37.     private $transport;
  38.     /**
  39.      * @ORM\Column(type="integer", nullable=false)
  40.      */
  41.     private $cityFromId;
  42.     /**
  43.      * @ORM\Column(type="integer", nullable=true)
  44.      */
  45.     private $dateNextDaysFrom;
  46.     /**
  47.      * @ORM\Column(type="integer", nullable=true)
  48.      */
  49.     private $dateNextDaysTo;
  50.     /**
  51.      * @ORM\Column(type="boolean", options={"default": 0})
  52.      */
  53.     private $dateMinPrice;
  54.     /**
  55.      * @ORM\Column(type="date", nullable=true)
  56.      */
  57.     private $dateFrom;
  58.     /**
  59.      * @ORM\Column(type="date", nullable=true)
  60.      */
  61.     private $dateTo;
  62.     /**
  63.      * @ORM\Column(type="integer", nullable=true)
  64.      */
  65.     private $durationFrom;
  66.     /**
  67.      * @ORM\Column(type="integer", nullable=true)
  68.      */
  69.     private $durationTo;
  70.     /**
  71.      * @ORM\Column(type="integer", nullable=false)
  72.      */
  73.     private $people;
  74.     /**
  75.      * @ORM\Column(type="simple_array", nullable=true)
  76.      */
  77.     private $food;
  78.     /**
  79.      * @ORM\Column(type="simple_array", nullable=true)
  80.      */
  81.     private $operators;
  82.     /**
  83.      * @var integer
  84.      * @Gedmo\SortablePosition
  85.      * @ORM\Column(name="priority", type="integer", options={"default":0}, nullable=true)
  86.      */
  87.     private $position 0;
  88.     /**
  89.      * @ORM\Column(type="boolean", options={"default": 1})
  90.      */
  91.     private $published true;
  92.     public function getId(): ?int
  93.     {
  94.         return $this->id;
  95.     }
  96.     public function getName(): ?string
  97.     {
  98.         return $this->name;
  99.     }
  100.     public function setName(string $name): self
  101.     {
  102.         $this->name $name;
  103.         return $this;
  104.     }
  105.     public function getSelection(): ?Selection
  106.     {
  107.         return $this->selection;
  108.     }
  109.     public function setSelection(?Selection $selection): self
  110.     {
  111.         $this->selection $selection;
  112.         return $this;
  113.     }
  114.     public function getHotelId(): int
  115.     {
  116.         return $this->hotelId;
  117.     }
  118.     public function setHotelId(int $hotelId): self
  119.     {
  120.         $this->hotelId $hotelId;
  121.         return $this;
  122.     }
  123.     public function getHotelSelect(): int
  124.     {
  125.         return $this->hotelSelect;
  126.     }
  127.     public function setHotelSelect(int $hotelSelect): self
  128.     {
  129.         $this->hotelSelect $hotelSelect;
  130.         return $this;
  131.     }
  132.     public function getTransport(): string
  133.     {
  134.         return $this->transport;
  135.     }
  136.     public function setTransport(string $transport): self
  137.     {
  138.         $this->transport $transport;
  139.         return $this;
  140.     }
  141.     public function getCityFromId(): int
  142.     {
  143.         return $this->cityFromId;
  144.     }
  145.     public function setCityFromId(int $cityFromId): self
  146.     {
  147.         $this->cityFromId $cityFromId;
  148.         return $this;
  149.     }
  150.     public function getDateNextDaysFrom()
  151.     {
  152.         return $this->dateNextDaysFrom;
  153.     }
  154.     public function setDateNextDaysFrom(?int $dateNextDaysFrom): self
  155.     {
  156.         $this->dateNextDaysFrom $dateNextDaysFrom;
  157.         return $this;
  158.     }
  159.     public function getDateNextDaysTo()
  160.     {
  161.         return $this->dateNextDaysTo;
  162.     }
  163.     public function setDateNextDaysTo(?int $dateNextDaysTo): self
  164.     {
  165.         $this->dateNextDaysTo $dateNextDaysTo;
  166.         return $this;
  167.     }
  168.     public function getDateMinPrice(): bool
  169.     {
  170.         return $this->dateMinPrice;
  171.     }
  172.     public function setDateMinPrice(bool $dateMinPrice): self
  173.     {
  174.         $this->dateMinPrice $dateMinPrice;
  175.         return $this;
  176.     }
  177.     public function getDateFrom()
  178.     {
  179.         return $this->dateFrom;
  180.     }
  181.     public function setDateFrom(?\DateTime $dateFrom): self
  182.     {
  183.         $this->dateFrom $dateFrom;
  184.         return $this;
  185.     }
  186.     public function getDateTo()
  187.     {
  188.         return $this->dateTo;
  189.     }
  190.     public function setDateTo(?\DateTime $dateTo): self
  191.     {
  192.         $this->dateTo $dateTo;
  193.         return $this;
  194.     }
  195.     public function getDurationFrom(): ?int
  196.     {
  197.         return $this->durationFrom;
  198.     }
  199.     public function setDurationFrom(?int $durationFrom): self
  200.     {
  201.         $this->durationFrom $durationFrom;
  202.         return $this;
  203.     }
  204.     public function getDurationTo(): ?int
  205.     {
  206.         return $this->durationTo;
  207.     }
  208.     public function setDurationTo(?int $durationTo): self
  209.     {
  210.         $this->durationTo $durationTo;
  211.         return $this;
  212.     }
  213.     public function getPeople(): int
  214.     {
  215.         return $this->people;
  216.     }
  217.     public function setPeople(int $people): self
  218.     {
  219.         $this->people $people;
  220.         return $this;
  221.     }
  222.     public function getFood()
  223.     {
  224.         return $this->food;
  225.     }
  226.     public function setFood($food): self
  227.     {
  228.         $this->food $food;
  229.         return $this;
  230.     }
  231.     public function getOperators()
  232.     {
  233.         return $this->operators;
  234.     }
  235.     public function setOperators($operators): self
  236.     {
  237.         $this->operators $operators;
  238.         return $this;
  239.     }
  240.     public function getPosition(): ?int
  241.     {
  242.         return $this->position;
  243.     }
  244.     public function setPosition(?int $position): self
  245.     {
  246.         $this->position = (!is_null($position))?$position:0;
  247.         return $this;
  248.     }
  249.     public function getPublished(): ?bool
  250.     {
  251.         return $this->published;
  252.     }
  253.     public function setPublished(bool $published): self
  254.     {
  255.         $this->published $published;
  256.         return $this;
  257.     }
  258.     public function __toString()
  259.     {
  260.         return $this->getName();
  261.     }
  262. }