feat: streamlined booking number property
This commit is contained in:
@@ -22,9 +22,18 @@ class BookingEditDraft
|
||||
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
|
||||
private User $user;
|
||||
|
||||
/**
|
||||
* Internal database ID (BPN XML: idbuchung).
|
||||
*/
|
||||
#[ORM\Column(type: 'integer')]
|
||||
private int $bookingId;
|
||||
|
||||
/**
|
||||
* User-facing transaction number (BPN XML: vorgang).
|
||||
*/
|
||||
#[ORM\Column(type: 'integer', nullable: true)]
|
||||
private ?int $bookingNumber = null;
|
||||
|
||||
#[ORM\Column(type: 'date_immutable')]
|
||||
private \DateTimeImmutable $travelDate;
|
||||
|
||||
@@ -62,6 +71,18 @@ class BookingEditDraft
|
||||
return $this->bookingId;
|
||||
}
|
||||
|
||||
public function getBookingNumber(): ?int
|
||||
{
|
||||
return $this->bookingNumber;
|
||||
}
|
||||
|
||||
public function setBookingNumber(?int $bookingNumber): static
|
||||
{
|
||||
$this->bookingNumber = $bookingNumber;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getTravelDate(): \DateTimeImmutable
|
||||
{
|
||||
return $this->travelDate;
|
||||
|
||||
Reference in New Issue
Block a user