src/Entity/TennisVenues.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TennisVenuesRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=TennisVenuesRepository::class)
  9.  */
  10. class TennisVenues
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=255, nullable=true)
  20.      */
  21.     private $venue;
  22.     /**
  23.      * @ORM\Column(type="string", length=255, nullable=true)
  24.      */
  25.     private $address;
  26.     /**
  27.      * @ORM\Column(type="text", nullable=true)
  28.      */
  29.     private $mapLink;
  30.     /**
  31.      * @ORM\Column(type="string", length=255, nullable=true)
  32.      */
  33.     private $webLink;
  34.     /**
  35.      * @ORM\Column(type="string", length=255, nullable=true)
  36.      */
  37.     private $telNumber;
  38.     /**
  39.      * @ORM\Column(type="string", length=255, nullable=true)
  40.      */
  41.     private $email;
  42.     /**
  43.      * @ORM\Column(type="string", length=255, nullable=true)
  44.      */
  45.     private $bookingEngine;
  46.     /**
  47.      * @ORM\Column(type="string", length=255, nullable=true)
  48.      */
  49.     private $londonRegion;
  50.     /**
  51.      * @ORM\OneToMany(targetEntity=TennisCourtPreferences::class, mappedBy="tennisVenue")
  52.      */
  53.     private $tennisCourtPreferences;
  54.     /**
  55.      * @ORM\OneToMany(targetEntity=TennisBookings::class, mappedBy="venue")
  56.      */
  57.     private $tennisBookings;
  58.     /**
  59.      * @ORM\Column(type="boolean", nullable=true)
  60.      */
  61.     private $isActive;
  62.     /**
  63.      * @ORM\Column(type="string", length=255, nullable=true)
  64.      */
  65.     private $parking;
  66.     /**
  67.      * @ORM\Column(type="string", length=255, nullable=true)
  68.      */
  69.     private $toilet;
  70.     /**
  71.      * @ORM\Column(type="string", length=255, nullable=true)
  72.      */
  73.     private $photo1;
  74.     /**
  75.      * @ORM\Column(type="string", length=255, nullable=true)
  76.      */
  77.     private $photo2;
  78.     /**
  79.      * @ORM\Column(type="string", length=255, nullable=true)
  80.      */
  81.     private $addressPostcode;
  82.     /**
  83.      * @ORM\Column(type="string", length=255, nullable=true)
  84.      */
  85.     private $addressCity;
  86.     /**
  87.      * @ORM\Column(type="string", length=255, nullable=true)
  88.      */
  89.     private $addressCountry;
  90.     /**
  91.      * @ORM\Column(type="text", nullable=true)
  92.      */
  93.     private $clubDescription;
  94.     /**
  95.      * @ORM\Column(type="string", length=255, nullable=true)
  96.      */
  97.     private $bookingUrl;
  98.     /**
  99.      * @ORM\Column(type="text", nullable=true)
  100.      */
  101.     private $travelDirections;
  102.     /**
  103.      * @ORM\Column(type="string", length=255, nullable=true)
  104.      */
  105.     private $tubeStation;
  106.     /**
  107.      * @ORM\Column(type="string", nullable=true)
  108.      */
  109.     private $allowFutureReservations;
  110.     /**
  111.      * @ORM\ManyToOne(targetEntity=User::class)
  112.      */
  113.     private $lastEditedBy;
  114.     /**
  115.      * @ORM\Column(type="datetime", nullable=true)
  116.      */
  117.     private $lastEditedAt;
  118.     /**
  119.      * @ORM\Column(type="string", length=255, nullable=true)
  120.      */
  121.     private $indoorCourts;
  122.     /**
  123.      * @ORM\Column(type="string", nullable=true)
  124.      */
  125.     private $floodlights;
  126.     /**
  127.      * @ORM\Column(type="integer", nullable=true)
  128.      */
  129.     private $numberOfCourts;
  130.     /**
  131.      * @ORM\Column(type="boolean", nullable=true)
  132.      */
  133.     private $detailsChecked;
  134.     /**
  135.      * @ORM\Column(type="string", length=255, nullable=true)
  136.      */
  137.     private $membersClub;
  138.     /**
  139.      * @ORM\Column(type="string", length=255, nullable=true)
  140.      */
  141.     private $courtSurface;
  142.     /**
  143.      * @ORM\Column(type="string", length=255, nullable=true)
  144.      */
  145.     private $longitude;
  146.     /**
  147.      * @ORM\Column(type="string", length=255, nullable=true)
  148.      */
  149.     private $latitude;
  150.     /**
  151.      * @ORM\Column(type="string", length=255, nullable=true)
  152.      */
  153.     private $shortCode;
  154.     public function __construct()
  155.     {
  156.         $this->tennisCourtPreferences = new ArrayCollection();
  157.         $this->tennisBookings = new ArrayCollection();
  158.         $this->users = new ArrayCollection();
  159.         $this->advanceBookings = new ArrayCollection();
  160.     }
  161.     public function getId(): ?int
  162.     {
  163.         return $this->id;
  164.     }
  165.     public function getVenue(): ?string
  166.     {
  167.         return $this->venue;
  168.     }
  169.     public function setVenue(string $venue): self
  170.     {
  171.         $this->venue $venue;
  172.         return $this;
  173.     }
  174.     public function getAddress(): ?string
  175.     {
  176.         return $this->address;
  177.     }
  178.     public function setAddress(?string $address): self
  179.     {
  180.         $this->address $address;
  181.         return $this;
  182.     }
  183.     public function getMapLink(): ?string
  184.     {
  185.         return $this->mapLink;
  186.     }
  187.     public function setMapLink(string $mapLink): self
  188.     {
  189.         $this->mapLink $mapLink;
  190.         return $this;
  191.     }
  192.     public function getWebLink(): ?string
  193.     {
  194.         return $this->webLink;
  195.     }
  196.     public function setWebLink(?string $webLink): self
  197.     {
  198.         $this->webLink $webLink;
  199.         return $this;
  200.     }
  201.     public function getTelNumber(): ?string
  202.     {
  203.         return $this->telNumber;
  204.     }
  205.     public function setTelNumber(?string $telNumber): self
  206.     {
  207.         $this->telNumber $telNumber;
  208.         return $this;
  209.     }
  210.     public function getEmail(): ?string
  211.     {
  212.         return $this->email;
  213.     }
  214.     public function setEmail(?string $email): self
  215.     {
  216.         $this->email $email;
  217.         return $this;
  218.     }
  219.     public function getBookingEngine(): ?string
  220.     {
  221.         return $this->bookingEngine;
  222.     }
  223.     public function setBookingEngine(?string $bookingEngine): self
  224.     {
  225.         $this->bookingEngine $bookingEngine;
  226.         return $this;
  227.     }
  228.     public function getLondonRegion(): ?string
  229.     {
  230.         return $this->londonRegion;
  231.     }
  232.     public function setLondonRegion(?string $londonRegion): self
  233.     {
  234.         $this->londonRegion $londonRegion;
  235.         return $this;
  236.     }
  237.     /**
  238.      * @return Collection|TennisCourtPreferences[]
  239.      */
  240.     public function getTennisCourtPreferences(): Collection
  241.     {
  242.         return $this->tennisCourtPreferences;
  243.     }
  244.     public function addTennisCourtPreference(TennisCourtPreferences $tennisCourtPreference): self
  245.     {
  246.         if (!$this->tennisCourtPreferences->contains($tennisCourtPreference)) {
  247.             $this->tennisCourtPreferences[] = $tennisCourtPreference;
  248.             $tennisCourtPreference->setTennisVenue($this);
  249.         }
  250.         return $this;
  251.     }
  252.     public function removeTennisCourtPreference(TennisCourtPreferences $tennisCourtPreference): self
  253.     {
  254.         if ($this->tennisCourtPreferences->removeElement($tennisCourtPreference)) {
  255.             // set the owning side to null (unless already changed)
  256.             if ($tennisCourtPreference->getTennisVenue() === $this) {
  257.                 $tennisCourtPreference->setTennisVenue(null);
  258.             }
  259.         }
  260.         return $this;
  261.     }
  262.     /**
  263.      * @return Collection|TennisBookings[]
  264.      */
  265.     public function getTennisBookings(): Collection
  266.     {
  267.         return $this->tennisBookings;
  268.     }
  269.     public function addTennisBooking(TennisBookings $tennisBooking): self
  270.     {
  271.         if (!$this->tennisBookings->contains($tennisBooking)) {
  272.             $this->tennisBookings[] = $tennisBooking;
  273.             $tennisBooking->setVenue($this);
  274.         }
  275.         return $this;
  276.     }
  277.     public function removeTennisBooking(TennisBookings $tennisBooking): self
  278.     {
  279.         if ($this->tennisBookings->removeElement($tennisBooking)) {
  280.             // set the owning side to null (unless already changed)
  281.             if ($tennisBooking->getVenue() === $this) {
  282.                 $tennisBooking->setVenue(null);
  283.             }
  284.         }
  285.         return $this;
  286.     }
  287.     public function getIsActive(): ?bool
  288.     {
  289.         return $this->isActive;
  290.     }
  291.     public function setIsActive(?bool $isActive): self
  292.     {
  293.         $this->isActive $isActive;
  294.         return $this;
  295.     }
  296.     public function getParking(): ?string
  297.     {
  298.         return $this->parking;
  299.     }
  300.     public function setParking(?string $parking): self
  301.     {
  302.         $this->parking $parking;
  303.         return $this;
  304.     }
  305.     public function getToilet(): ?string
  306.     {
  307.         return $this->toilet;
  308.     }
  309.     public function setToilet(?string $toilet): self
  310.     {
  311.         $this->toilet $toilet;
  312.         return $this;
  313.     }
  314.     /**
  315.      * @return Collection|User[]
  316.      */
  317.     public function getUsers(): Collection
  318.     {
  319.         return $this->users;
  320.     }
  321.     public function addUser(User $user): self
  322.     {
  323.         if (!$this->users->contains($user)) {
  324.             $this->users[] = $user;
  325.         }
  326.         return $this;
  327.     }
  328.     public function removeUser(User $user): self
  329.     {
  330.         if ($this->users->removeElement($user)) {
  331.         }
  332.         return $this;
  333.     }
  334.     public function getPhoto1(): ?string
  335.     {
  336.         return $this->photo1;
  337.     }
  338.     public function setPhoto1(?string $photo1): self
  339.     {
  340.         $this->photo1 $photo1;
  341.         return $this;
  342.     }
  343.     public function getPhoto2(): ?string
  344.     {
  345.         return $this->photo2;
  346.     }
  347.     public function setPhoto2(?string $photo2): self
  348.     {
  349.         $this->photo2 $photo2;
  350.         return $this;
  351.     }
  352.     public function getAddressPostcode(): ?string
  353.     {
  354.         return $this->addressPostcode;
  355.     }
  356.     public function setAddressPostcode(?string $addressPostcode): self
  357.     {
  358.         $this->addressPostcode $addressPostcode;
  359.         return $this;
  360.     }
  361.     public function getAddressCity(): ?string
  362.     {
  363.         return $this->addressCity;
  364.     }
  365.     public function setAddressCity(?string $addressCity): self
  366.     {
  367.         $this->addressCity $addressCity;
  368.         return $this;
  369.     }
  370.     public function getAddressCountry(): ?string
  371.     {
  372.         return $this->addressCountry;
  373.     }
  374.     public function setAddressCountry(?string $addressCountry): self
  375.     {
  376.         $this->addressCountry $addressCountry;
  377.         return $this;
  378.     }
  379.     public function getClubDescription(): ?string
  380.     {
  381.         return $this->clubDescription;
  382.     }
  383.     public function setClubDescription(?string $clubDescription): self
  384.     {
  385.         $this->clubDescription $clubDescription;
  386.         return $this;
  387.     }
  388.     public function getBookingUrl(): ?string
  389.     {
  390.         return $this->bookingUrl;
  391.     }
  392.     public function setBookingUrl(?string $bookingUrl): self
  393.     {
  394.         $this->bookingUrl $bookingUrl;
  395.         return $this;
  396.     }
  397.     public function getTravelDirections(): ?string
  398.     {
  399.         return $this->travelDirections;
  400.     }
  401.     public function setTravelDirections(?string $travelDirections): self
  402.     {
  403.         $this->travelDirections $travelDirections;
  404.         return $this;
  405.     }
  406.     public function getTubeStation(): ?string
  407.     {
  408.         return $this->tubeStation;
  409.     }
  410.     public function setTubeStation(?string $tubeStation): self
  411.     {
  412.         $this->tubeStation $tubeStation;
  413.         return $this;
  414.     }
  415.     public function getAllowFutureReservations(): ?string
  416.     {
  417.         return $this->allowFutureReservations;
  418.     }
  419.     public function setAllowFutureReservations(?string $allowFutureReservations): self
  420.     {
  421.         $this->allowFutureReservations $allowFutureReservations;
  422.         return $this;
  423.     }
  424.     public function getLastEditedBy(): ?User
  425.     {
  426.         return $this->lastEditedBy;
  427.     }
  428.     public function setLastEditedBy(?User $lastEditedBy): self
  429.     {
  430.         $this->lastEditedBy $lastEditedBy;
  431.         return $this;
  432.     }
  433.     public function getLastEditedAt(): ?\DateTimeInterface
  434.     {
  435.         return $this->lastEditedAt;
  436.     }
  437.     public function setLastEditedAt(?\DateTimeInterface $lastEditedAt): self
  438.     {
  439.         $this->lastEditedAt $lastEditedAt;
  440.         return $this;
  441.     }
  442.     public function getIndoorCourts(): ?string
  443.     {
  444.         return $this->indoorCourts;
  445.     }
  446.     public function setIndoorCourts(?string $indoorCourts): self
  447.     {
  448.         $this->indoorCourts $indoorCourts;
  449.         return $this;
  450.     }
  451.     public function getFloodlights(): ?string
  452.     {
  453.         return $this->floodlights;
  454.     }
  455.     public function setFloodlights(?string $floodlights): self
  456.     {
  457.         $this->floodlights $floodlights;
  458.         return $this;
  459.     }
  460.     public function getNumberOfCourts(): ?int
  461.     {
  462.         return $this->numberOfCourts;
  463.     }
  464.     public function setNumberOfCourts(?int $numberOfCourts): self
  465.     {
  466.         $this->numberOfCourts $numberOfCourts;
  467.         return $this;
  468.     }
  469.     public function getDetailsChecked(): ?bool
  470.     {
  471.         return $this->detailsChecked;
  472.     }
  473.     public function setDetailsChecked(?bool $detailsChecked): self
  474.     {
  475.         $this->detailsChecked $detailsChecked;
  476.         return $this;
  477.     }
  478.     public function getMembersClub(): ?string
  479.     {
  480.         return $this->membersClub;
  481.     }
  482.     public function setMembersClub(?string $membersClub): self
  483.     {
  484.         $this->membersClub $membersClub;
  485.         return $this;
  486.     }
  487.     public function getCourtSurface(): ?string
  488.     {
  489.         return $this->courtSurface;
  490.     }
  491.     public function setCourtSurface(?string $courtSurface): self
  492.     {
  493.         $this->courtSurface $courtSurface;
  494.         return $this;
  495.     }
  496.     public function getLongitude(): ?string
  497.     {
  498.         return $this->longitude;
  499.     }
  500.     public function setLongitude(?string $longitude): self
  501.     {
  502.         $this->longitude $longitude;
  503.         return $this;
  504.     }
  505.     public function getLatitude(): ?string
  506.     {
  507.         return $this->latitude;
  508.     }
  509.     public function setLatitude(?string $latitude): self
  510.     {
  511.         $this->latitude $latitude;
  512.         return $this;
  513.     }
  514.     public function getShortCode(): ?string
  515.     {
  516.         return $this->shortCode;
  517.     }
  518.     public function setShortCode(?string $shortCode): self
  519.     {
  520.         $this->shortCode $shortCode;
  521.         return $this;
  522.     }
  523. }