<?php
namespace App\Entity;
use App\Repository\TennisVenuesRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=TennisVenuesRepository::class)
*/
class TennisVenues
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $venue;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $address;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $mapLink;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $webLink;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $telNumber;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $email;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $bookingEngine;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $londonRegion;
/**
* @ORM\OneToMany(targetEntity=TennisCourtPreferences::class, mappedBy="tennisVenue")
*/
private $tennisCourtPreferences;
/**
* @ORM\OneToMany(targetEntity=TennisBookings::class, mappedBy="venue")
*/
private $tennisBookings;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $isActive;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $parking;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $toilet;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $photo1;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $photo2;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $addressPostcode;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $addressCity;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $addressCountry;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $clubDescription;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $bookingUrl;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $travelDirections;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tubeStation;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $allowFutureReservations;
/**
* @ORM\ManyToOne(targetEntity=User::class)
*/
private $lastEditedBy;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $lastEditedAt;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $indoorCourts;
/**
* @ORM\Column(type="string", nullable=true)
*/
private $floodlights;
/**
* @ORM\Column(type="integer", nullable=true)
*/
private $numberOfCourts;
/**
* @ORM\Column(type="boolean", nullable=true)
*/
private $detailsChecked;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $membersClub;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $courtSurface;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $longitude;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $latitude;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $shortCode;
public function __construct()
{
$this->tennisCourtPreferences = new ArrayCollection();
$this->tennisBookings = new ArrayCollection();
$this->users = new ArrayCollection();
$this->advanceBookings = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getVenue(): ?string
{
return $this->venue;
}
public function setVenue(string $venue): self
{
$this->venue = $venue;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(?string $address): self
{
$this->address = $address;
return $this;
}
public function getMapLink(): ?string
{
return $this->mapLink;
}
public function setMapLink(string $mapLink): self
{
$this->mapLink = $mapLink;
return $this;
}
public function getWebLink(): ?string
{
return $this->webLink;
}
public function setWebLink(?string $webLink): self
{
$this->webLink = $webLink;
return $this;
}
public function getTelNumber(): ?string
{
return $this->telNumber;
}
public function setTelNumber(?string $telNumber): self
{
$this->telNumber = $telNumber;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getBookingEngine(): ?string
{
return $this->bookingEngine;
}
public function setBookingEngine(?string $bookingEngine): self
{
$this->bookingEngine = $bookingEngine;
return $this;
}
public function getLondonRegion(): ?string
{
return $this->londonRegion;
}
public function setLondonRegion(?string $londonRegion): self
{
$this->londonRegion = $londonRegion;
return $this;
}
/**
* @return Collection|TennisCourtPreferences[]
*/
public function getTennisCourtPreferences(): Collection
{
return $this->tennisCourtPreferences;
}
public function addTennisCourtPreference(TennisCourtPreferences $tennisCourtPreference): self
{
if (!$this->tennisCourtPreferences->contains($tennisCourtPreference)) {
$this->tennisCourtPreferences[] = $tennisCourtPreference;
$tennisCourtPreference->setTennisVenue($this);
}
return $this;
}
public function removeTennisCourtPreference(TennisCourtPreferences $tennisCourtPreference): self
{
if ($this->tennisCourtPreferences->removeElement($tennisCourtPreference)) {
// set the owning side to null (unless already changed)
if ($tennisCourtPreference->getTennisVenue() === $this) {
$tennisCourtPreference->setTennisVenue(null);
}
}
return $this;
}
/**
* @return Collection|TennisBookings[]
*/
public function getTennisBookings(): Collection
{
return $this->tennisBookings;
}
public function addTennisBooking(TennisBookings $tennisBooking): self
{
if (!$this->tennisBookings->contains($tennisBooking)) {
$this->tennisBookings[] = $tennisBooking;
$tennisBooking->setVenue($this);
}
return $this;
}
public function removeTennisBooking(TennisBookings $tennisBooking): self
{
if ($this->tennisBookings->removeElement($tennisBooking)) {
// set the owning side to null (unless already changed)
if ($tennisBooking->getVenue() === $this) {
$tennisBooking->setVenue(null);
}
}
return $this;
}
public function getIsActive(): ?bool
{
return $this->isActive;
}
public function setIsActive(?bool $isActive): self
{
$this->isActive = $isActive;
return $this;
}
public function getParking(): ?string
{
return $this->parking;
}
public function setParking(?string $parking): self
{
$this->parking = $parking;
return $this;
}
public function getToilet(): ?string
{
return $this->toilet;
}
public function setToilet(?string $toilet): self
{
$this->toilet = $toilet;
return $this;
}
/**
* @return Collection|User[]
*/
public function getUsers(): Collection
{
return $this->users;
}
public function addUser(User $user): self
{
if (!$this->users->contains($user)) {
$this->users[] = $user;
}
return $this;
}
public function removeUser(User $user): self
{
if ($this->users->removeElement($user)) {
}
return $this;
}
public function getPhoto1(): ?string
{
return $this->photo1;
}
public function setPhoto1(?string $photo1): self
{
$this->photo1 = $photo1;
return $this;
}
public function getPhoto2(): ?string
{
return $this->photo2;
}
public function setPhoto2(?string $photo2): self
{
$this->photo2 = $photo2;
return $this;
}
public function getAddressPostcode(): ?string
{
return $this->addressPostcode;
}
public function setAddressPostcode(?string $addressPostcode): self
{
$this->addressPostcode = $addressPostcode;
return $this;
}
public function getAddressCity(): ?string
{
return $this->addressCity;
}
public function setAddressCity(?string $addressCity): self
{
$this->addressCity = $addressCity;
return $this;
}
public function getAddressCountry(): ?string
{
return $this->addressCountry;
}
public function setAddressCountry(?string $addressCountry): self
{
$this->addressCountry = $addressCountry;
return $this;
}
public function getClubDescription(): ?string
{
return $this->clubDescription;
}
public function setClubDescription(?string $clubDescription): self
{
$this->clubDescription = $clubDescription;
return $this;
}
public function getBookingUrl(): ?string
{
return $this->bookingUrl;
}
public function setBookingUrl(?string $bookingUrl): self
{
$this->bookingUrl = $bookingUrl;
return $this;
}
public function getTravelDirections(): ?string
{
return $this->travelDirections;
}
public function setTravelDirections(?string $travelDirections): self
{
$this->travelDirections = $travelDirections;
return $this;
}
public function getTubeStation(): ?string
{
return $this->tubeStation;
}
public function setTubeStation(?string $tubeStation): self
{
$this->tubeStation = $tubeStation;
return $this;
}
public function getAllowFutureReservations(): ?string
{
return $this->allowFutureReservations;
}
public function setAllowFutureReservations(?string $allowFutureReservations): self
{
$this->allowFutureReservations = $allowFutureReservations;
return $this;
}
public function getLastEditedBy(): ?User
{
return $this->lastEditedBy;
}
public function setLastEditedBy(?User $lastEditedBy): self
{
$this->lastEditedBy = $lastEditedBy;
return $this;
}
public function getLastEditedAt(): ?\DateTimeInterface
{
return $this->lastEditedAt;
}
public function setLastEditedAt(?\DateTimeInterface $lastEditedAt): self
{
$this->lastEditedAt = $lastEditedAt;
return $this;
}
public function getIndoorCourts(): ?string
{
return $this->indoorCourts;
}
public function setIndoorCourts(?string $indoorCourts): self
{
$this->indoorCourts = $indoorCourts;
return $this;
}
public function getFloodlights(): ?string
{
return $this->floodlights;
}
public function setFloodlights(?string $floodlights): self
{
$this->floodlights = $floodlights;
return $this;
}
public function getNumberOfCourts(): ?int
{
return $this->numberOfCourts;
}
public function setNumberOfCourts(?int $numberOfCourts): self
{
$this->numberOfCourts = $numberOfCourts;
return $this;
}
public function getDetailsChecked(): ?bool
{
return $this->detailsChecked;
}
public function setDetailsChecked(?bool $detailsChecked): self
{
$this->detailsChecked = $detailsChecked;
return $this;
}
public function getMembersClub(): ?string
{
return $this->membersClub;
}
public function setMembersClub(?string $membersClub): self
{
$this->membersClub = $membersClub;
return $this;
}
public function getCourtSurface(): ?string
{
return $this->courtSurface;
}
public function setCourtSurface(?string $courtSurface): self
{
$this->courtSurface = $courtSurface;
return $this;
}
public function getLongitude(): ?string
{
return $this->longitude;
}
public function setLongitude(?string $longitude): self
{
$this->longitude = $longitude;
return $this;
}
public function getLatitude(): ?string
{
return $this->latitude;
}
public function setLatitude(?string $latitude): self
{
$this->latitude = $latitude;
return $this;
}
public function getShortCode(): ?string
{
return $this->shortCode;
}
public function setShortCode(?string $shortCode): self
{
$this->shortCode = $shortCode;
return $this;
}
}