Buckets:
| namespace App\Entity; | |
| use App\Repository\ReservationRepository; | |
| use Doctrine\ORM\Mapping as ORM; | |
| #[ORM\Entity(repositoryClass: ReservationRepository::class)] | |
| class Reservation | |
| { | |
| #[ORM\Id] | |
| #[ORM\GeneratedValue] | |
| #[ORM\Column] | |
| private ?int $id = null; | |
| #[ORM\ManyToOne(inversedBy: 'reservations')] | |
| #[ORM\JoinColumn(nullable: false)] | |
| private ?User $user = null; | |
| #[ORM\ManyToOne(inversedBy: 'reservations')] | |
| #[ORM\JoinColumn(nullable: false)] | |
| private ?Book $book = null; | |
| #[ORM\Column] | |
| private ?\DateTimeImmutable $reservedAt = null; | |
| #[ORM\Column] | |
| private ?\DateTimeImmutable $returnAt = null; | |
| public function getId(): ?int | |
| { | |
| return $this->id; | |
| } | |
| public function getUser(): ?User | |
| { | |
| return $this->user; | |
| } | |
| public function setUser(?User $user): static | |
| { | |
| $this->user = $user; | |
| return $this; | |
| } | |
| public function getBook(): ?Book | |
| { | |
| return $this->book; | |
| } | |
| public function setBook(?Book $book): static | |
| { | |
| $this->book = $book; | |
| return $this; | |
| } | |
| public function getReservedAt(): ?\DateTimeImmutable | |
| { | |
| return $this->reservedAt; | |
| } | |
| public function setReservedAt(\DateTimeImmutable $reservedAt): static | |
| { | |
| $this->reservedAt = $reservedAt; | |
| return $this; | |
| } | |
| public function getReturnAt(): ?\DateTimeImmutable | |
| { | |
| return $this->returnAt; | |
| } | |
| public function setReturnAt(\DateTimeImmutable $returnAt): static | |
| { | |
| $this->returnAt = $returnAt; | |
| return $this; | |
| } | |
| } | |
Xet Storage Details
- Size:
- 1.61 kB
- Xet hash:
- 1f74c7d48f3ba801978f86834fa39b23f940f90cbdec7bd5c9d5e053ce6cbdc2
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.