src/Entity/PitchDisponibility.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PitchDisponibilityRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Symfony\Component\Serializer\Annotation\Groups;
  6. #[ORM\Entity(repositoryClassPitchDisponibilityRepository::class)]
  7. class PitchDisponibility
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     #[Groups(['reservation:read'])]
  13.     private $id;
  14.     #[ORM\ManyToOne(targetEntityHoure::class, inversedBy'pitchDisponibilities')]
  15.     #[Groups(['reservation:read'])]
  16.     private $houre;
  17.     #[ORM\ManyToOne(targetEntityReservation::class, inversedBy'pitchDisponibilities')]
  18.     private $reservation;
  19.     #[ORM\Column(type'date'nullabletrue)]
  20.     private $date_reservation;
  21.     #[ORM\Column(type'integer'nullabletrue)]
  22.     private $pitch;
  23.     #[ORM\ManyToOne(targetEntityAcademy::class, inversedBy'pitchDisponibilities')]
  24.     private $academy;
  25.     #[ORM\Column(type'integer'nullabletrue)]
  26.     private $day;
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getHoure(): ?Houre
  32.     {
  33.         return $this->houre;
  34.     }
  35.     public function setHoure(?Houre $houre): self
  36.     {
  37.         $this->houre $houre;
  38.         return $this;
  39.     }
  40.     public function getReservation(): ?Reservation
  41.     {
  42.         return $this->reservation;
  43.     }
  44.     public function setReservation(?Reservation $reservation): self
  45.     {
  46.         $this->reservation $reservation;
  47.         return $this;
  48.     }
  49.     public function getDateReservation(): ?\DateTimeInterface
  50.     {
  51.         return $this->date_reservation;
  52.     }
  53.     public function setDateReservation(?\DateTimeInterface $date_reservation): self
  54.     {
  55.         $this->date_reservation $date_reservation;
  56.         return $this;
  57.     }
  58.     public function getPitch(): ?int
  59.     {
  60.         return $this->pitch;
  61.     }
  62.     public function setPitch(?int $pitch): self
  63.     {
  64.         $this->pitch $pitch;
  65.         return $this;
  66.     }
  67.     public function getAcademy(): ?Academy
  68.     {
  69.         return $this->academy;
  70.     }
  71.     public function setAcademy(?Academy $academy): self
  72.     {
  73.         $this->academy $academy;
  74.         return $this;
  75.     }
  76.     public function getDay(): ?int
  77.     {
  78.         return $this->day;
  79.     }
  80.     public function setDay(?int $day): self
  81.     {
  82.         $this->day $day;
  83.         return $this;
  84.     }
  85. }