mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
dec78bf8d7
Update Currency Selling Logic Class Delete Currency Selling Logic Class Create Currency Log Service Class
78 lines
1.5 KiB
PHP
78 lines
1.5 KiB
PHP
<?php
|
|
|
|
namespace App\Classes\Modules\Currencies\DataTransferObjects;
|
|
|
|
use App\Classes\Interfaces\DataTransferObject;
|
|
|
|
class CurrencyObject implements DataTransferObject
|
|
{
|
|
/** @var string|null */
|
|
private $country_id;
|
|
private $name;
|
|
private $short_code;
|
|
private $symbol;
|
|
private $selling;
|
|
|
|
/**
|
|
* CompanyBankObject constructor.
|
|
* @param int|null $country_id
|
|
* @param string|null $name
|
|
* @param string|null $short_code
|
|
* @param string|null $symbol
|
|
* @param float|null $selling
|
|
*/
|
|
public function __construct(
|
|
?int $country_id,
|
|
?string $name,
|
|
?string $short_code,
|
|
?string $symbol,
|
|
?float $selling
|
|
)
|
|
{
|
|
$this->country_id = $country_id;
|
|
$this->name = $name;
|
|
$this->short_code = $short_code;
|
|
$this->symbol = $symbol;
|
|
$this->selling = $selling;
|
|
}
|
|
|
|
/**
|
|
* @return int
|
|
*/
|
|
public function getCountryId(): ?int
|
|
{
|
|
return $this->country_id;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getName(): ?string
|
|
{
|
|
return $this->name;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getShortCode(): ?string
|
|
{
|
|
return $this->short_code;
|
|
}
|
|
|
|
/**
|
|
* @return string
|
|
*/
|
|
public function getSymbol(): ?string
|
|
{
|
|
return $this->symbol;
|
|
}
|
|
|
|
/**
|
|
* @return float
|
|
*/
|
|
public function getSelling(): ?float
|
|
{
|
|
return $this->selling;
|
|
}
|
|
} |