src/Entity/TennisVenues.php line 13
<?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)]
#[ORM\Table(name: "tennis_venues")]
class TennisVenues
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: "integer")]
private ?int $id = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $venue = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $address = null;
#[ORM\Column(type: "text", nullable: true)]
private ?string $mapLink = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $webLink = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $telNumber = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $email = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $bookingEngine = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $londonRegion = null;
#[ORM\OneToMany(targetEntity: TennisCourtPreferences::class, mappedBy: "tennisVenue")]
private Collection $tennisCourtPreferences;
#[ORM\OneToMany(targetEntity: TennisBookings::class, mappedBy: "venue")]
private Collection $tennisBookings;
#[ORM\Column(type: "boolean", nullable: true)]
private ?bool $isActive = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $parking = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $toilet = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $photo1 = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $photo2 = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $addressPostcode = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $addressCity = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $addressCountry = null;
#[ORM\Column(type: "text", nullable: true)]
private ?string $clubDescription = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $bookingUrl = null;
#[ORM\Column(type: "text", nullable: true)]
private ?string $travelDirections = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $tubeStation = null;
#[ORM\Column(type: "string", nullable: true)]
private ?string $allowFutureReservations = null;
#[ORM\ManyToOne(targetEntity: User::class)]
private ?User $lastEditedBy = null;
#[ORM\Column(type: "datetime", nullable: true)]
private ?\DateTimeInterface $lastEditedAt = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $indoorCourts = null;
#[ORM\Column(type: "string", nullable: true)]
private ?string $floodlights = null;
#[ORM\Column(type: "integer", nullable: true)]
private ?int $numberOfCourts = null;
#[ORM\Column(type: "boolean", nullable: true)]
private ?bool $detailsChecked = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $membersClub = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $courtSurface = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $longitude = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $latitude = null;
#[ORM\Column(type: "string", length: 255, nullable: true)]
private ?string $shortCode = null;
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;
}
}