Files
exchange-2.0/app/Classes/Modules/Currencies/DataTransferObjects/CurrencyObject.php
T
CheeSiong 1dfb75545f List Currency Rate Logic Class
Fetch Currency Rate Logic Class
 Create Currency Rate Logic Class
 Update Currency Rate Logic Class
Currency Rate Converter Rate
2020-12-30 08:47:12 +08:00

67 lines
1.2 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;
/**
* CurrencyObject constructor.
* @param int|null $country_id
* @param null|string $name
* @param null|string $short_code
* @param null|string $symbol
*/
public function __construct(
?int $country_id,
?string $name,
?string $short_code,
?string $symbol
)
{
$this->country_id = $country_id;
$this->name = $name;
$this->short_code = $short_code;
$this->symbol = $symbol;
}
/**
* @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;
}
}