src/Entity/TennisVenues.php line 13

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