Co-authored-by: Jan Klattenhoff <jan@kjan.email>
Reviewed-on: #37
This commit is contained in:
2025-02-28 11:53:10 +00:00
parent dacd7f5cd2
commit c220c2aef8
9 changed files with 82 additions and 22 deletions

View File

@ -24,6 +24,9 @@ class Payment
#[ORM\JoinColumn(nullable: false)]
private ?Customer $customer = null;
#[ORM\Column(nullable: true)]
private ?float $donation = null;
public function getId(): ?int
{
return $this->id;
@ -71,4 +74,16 @@ class Payment
return $total + TicketData::TICKET_DATA[$ticket->getType()]['price'];
}, 0);
}
public function getDonation(): ?float
{
return $this->donation;
}
public function setDonation(?float $donation): static
{
$this->donation = $donation;
return $this;
}
}