stuff (#37)
Co-authored-by: Jan Klattenhoff <jan@kjan.email> Reviewed-on: #37
This commit is contained in:
@ -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;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user