Wallet operations

This commit is contained in:
Fairuz
2021-10-07 01:34:11 +08:00
parent dbfe8751d6
commit e94ef44928
31 changed files with 1027 additions and 29 deletions
@@ -16,17 +16,20 @@ class WalletObject implements DataTransferObject
/** @var int */
private $code;
private $amount;
/**
* WalletObject constructor.
* @param int $company_id
* @param int $currency
* @param int $code
*/
public function __construct(int $company_id, int $currency, int $code)
public function __construct(int $company_id, int $currency, int $code, float $amount=0)
{
$this->company_id = $company_id;
$this->currency_id = $currency;
$this->code = $code;
$this->amount = $amount;
}
/**
@@ -53,7 +56,10 @@ class WalletObject implements DataTransferObject
return $this->code;
}
public function getAmount(): float
{
return $this->amount;
}
}
}