src/Entity/Booking.php line 13
<?phpnamespace App\Entity;use ApiPlatform\Metadata\ApiResource;use App\Repository\BookingRepository;use Doctrine\ORM\Mapping as ORM;use Symfony\UX\Turbo\Attribute\Broadcast;#[ORM\Entity(repositoryClass: BookingRepository::class)]#[ApiResource]#[Broadcast]class Booking{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(inversedBy: 'bookings')]private ?Attendee $attendee = null;#[ORM\Column]private ?float $total = null;#[ORM\Column(length: 255)]private ?string $position = null;#[ORM\Column]private ?\DateTimeImmutable $createdAt = null;#[ORM\Column(length: 255)]private ?string $status = null;public function getId(): ?int{return $this->id;}public function getAttendee(): ?Attendee{return $this->attendee;}public function setAttendee(?Attendee $attendee): self{$this->attendee = $attendee;return $this;}public function getTotal(): ?float{return $this->total;}public function setTotal(float $total): self{$this->total = $total;return $this;}public function getPosition(): ?string{return $this->position;}public function setPosition(string $position): self{$this->position = $position;return $this;}public function getCreatedAt(): ?\DateTimeImmutable{return $this->createdAt;}public function setCreatedAt(\DateTimeImmutable $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getStatus(): ?string{return $this->status;}public function setStatus(string $status): self{$this->status = $status;return $this;}}