mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-20 04:54:17 +00:00
68 lines
1.1 KiB
PHP
68 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Wallets\DataTransferObjects;
|
|
|
|
use App\Classes\Interfaces\DataTransferObject;
|
|
|
|
class WalletObject implements DataTransferObject
|
|
{
|
|
/** @var string|null */
|
|
private $code;
|
|
|
|
/** @var string|null */
|
|
private $amount;
|
|
|
|
/** @var string|null */
|
|
private $company_id;
|
|
|
|
private $currency;
|
|
|
|
|
|
public function __construct(
|
|
?string $code,
|
|
?string $currency,
|
|
?string $amount,
|
|
?string $company_id
|
|
)
|
|
{
|
|
$this->code = $code;
|
|
$this->currency = $currency;
|
|
$this->amount = $amount;
|
|
$this->company_id = $company_id;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCode(): ?string
|
|
{
|
|
return $this->code;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getCurrency(): ?string
|
|
{
|
|
return $this->currency;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getAmount(): ?float
|
|
{
|
|
return floatval($this->amount);
|
|
}
|
|
|
|
/**
|
|
* @return int|null
|
|
*/
|
|
public function getCompanyId(): ?int
|
|
{
|
|
return $this->company_id;
|
|
}
|
|
|
|
|
|
|
|
} |