This commit is contained in:
2026-03-25 20:28:04 +01:00
parent 37039f082c
commit 33b4a249cc
9 changed files with 303 additions and 42 deletions

View File

@@ -37,8 +37,9 @@ class Amount {
|> function (string $value) : string { return str_replace('.', ',', $value); };
}
public function addAmount(Amount $amount) : void {
public function addAmount(Amount $amount) : Amount {
$this->amount += $amount->getAmount();
return $this;
}
public function subtractAmount(Amount $amount) : void {