mirror of
https://gitlab.com/uldvstar/exchange-2.0.git
synced 2026-08-19 04:24:16 +00:00
1dfb75545f
Fetch Currency Rate Logic Class Create Currency Rate Logic Class Update Currency Rate Logic Class Currency Rate Converter Rate
67 lines
1.2 KiB
PHP
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;
|
|
}
|
|
} |