<?phpnamespace App\Entity;use App\Repository\SchedulesRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use Symfony\Component\Serializer\Annotation\Groups;#[ORM\Entity(repositoryClass: SchedulesRepository::class)]class Schedules{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] #[Groups(["getReservation"])] private ?int $id = null; #[ORM\ManyToOne] #[ORM\JoinColumn(nullable: false)] private ?Project $project = null; #[ORM\ManyToOne(inversedBy: 'schedules')] private ?Reservation $reservation = null; #[ORM\OneToOne(mappedBy: 'schedules', cascade: ['persist', 'remove'])] private ?Time $time = null; #[ORM\ManyToOne] #[ORM\JoinColumn(nullable: false)] private ?User $user = null; #[ORM\Column(type: Types::DATE_MUTABLE)] private ?\DateTimeInterface $date = null; #[ORM\Column(type: Types::TIME_MUTABLE)] private ?\DateTimeInterface $startTime = null; #[ORM\Column(type: Types::TIME_MUTABLE)] private ?\DateTimeInterface $endTime = null; #[ORM\Column] private ?bool $inClosure = false; #[ORM\Column] private ?bool $inClosureClient = false; #[ORM\ManyToOne(inversedBy: 'schedules')] private ?ClosureClient $clientClosure = null; #[ORM\ManyToOne(inversedBy: 'schedules')] private ?Closure $Closure = null; public function getId(): ?int { return $this->id; } public function getProject(): ?Project { return $this->project; } public function setProject(?Project $project): self { $this->project = $project; return $this; } public function getStartDate(): ?\DateTimeInterface { return $this->startDate; } public function setStartDate(\DateTimeInterface $startDate): self { $this->startDate = $startDate; return $this; } public function getEndDate(): ?\DateTimeInterface { return $this->endDate; } public function setEndDate(\DateTimeInterface $endDate): self { $this->endDate = $endDate; return $this; } public function getReservation(): ?Reservation { return $this->reservation; } public function setReservation(?Reservation $reservation): self { $this->reservation = $reservation; return $this; } public function getTime(): ?Time { return $this->time; } public function setTime(?Time $time): self { // unset the owning side of the relation if necessary if ($time === null && $this->time !== null) { $this->time->setSchedules(null); } // set the owning side of the relation if necessary if ($time !== null && $time->getSchedules() !== $this) { $time->setSchedules($this); } $this->time = $time; return $this; } public function getUser(): ?User { return $this->user; } public function setUser(?User $user): self { $this->user = $user; return $this; } public function getDate(): ?\DateTimeInterface { return $this->date; } public function setDate(\DateTimeInterface $date): self { $this->date = $date; return $this; } public function getStartTime(): ?\DateTimeInterface { return $this->startTime; } public function setStartTime(\DateTimeInterface $startTime): self { $this->startTime = $startTime; return $this; } public function getEndTime(): ?\DateTimeInterface { return $this->endTime; } public function setEndTime(\DateTimeInterface $endTime): self { $this->endTime = $endTime; return $this; } public function isInClosure(): ?bool { return $this->inClosure; } public function setInClosure(bool $inClosure): self { $this->inClosure = $inClosure; return $this; } public function isInClosureClient(): ?bool { return $this->inClosureClient; } public function setInClosureClient(bool $inClosureClient): self { $this->inClosureClient = $inClosureClient; return $this; } public function getClientClosure(): ?ClosureClient { return $this->clientClosure; } public function setClientClosure(?ClosureClient $clientClosure): self { $this->clientClosure = $clientClosure; return $this; } public function getClosure(): ?Closure { return $this->Closure; } public function setClosure(?Closure $Closure): self { $this->Closure = $Closure; return $this; }}