mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-26 16:04:05 +00:00
List Currency Rate Logic Class
Fetch Currency Rate Logic Class Create Currency Rate Logic Class Update Currency Rate Logic Class Currency Rate Converter Rate
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
|
||||
namespace App\Classes\Modules\CurrencyRates\DataTransferObjects;
|
||||
|
||||
use App\Classes\Interfaces\DataTransferObject;
|
||||
|
||||
class CurrencyRateObject implements DataTransferObject
|
||||
{
|
||||
/** @var int|null */
|
||||
private $currency_id;
|
||||
|
||||
/** @var string|null */
|
||||
private $selling;
|
||||
|
||||
/** @var string|null */
|
||||
private $payment_method_type;
|
||||
|
||||
/**
|
||||
* CurrencyRateObject constructor.
|
||||
* @param int|null $currency_id
|
||||
* @param string|null $selling
|
||||
* @param string|null $payment_method_type
|
||||
*/
|
||||
public function __construct(
|
||||
?int $currency_id,
|
||||
?string $selling,
|
||||
?string $payment_method_type
|
||||
)
|
||||
{
|
||||
$this->currency_id = $currency_id;
|
||||
$this->selling = $selling;
|
||||
$this->payment_method_type = $payment_method_type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
public function getCurrencyId(): ?int
|
||||
{
|
||||
return $this->currency_id;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getSelling(): ?string
|
||||
{
|
||||
return $this->selling;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
public function getPaymentMethodType(): ?string
|
||||
{
|
||||
return $this->payment_method_type;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user