File: /var/www/vhost/disk-apps/demo.sports-crowd.com/app/Core/Payment/Entities/Amount.php
<?php
declare(strict_types=1);
namespace App\Core\Payment\Entities;
class Amount
{
    private $total;
    private $currency;
    public function __construct(
        float $total,
        ?string $currency = null
    ) {
        $this->total = $total;
        $this->currency = $currency;
    }
    public function total(): float
    {
        return $this->total;
    }
    public function currency(): ?string
    {
        return $this->currency;
    }
    public function setCurrency(string $currency): void
    {
        $this->currency = $currency;
    }
}