Files
exchange-2.0/app/Classes/Modules/Currencies/DataTransferObjects/CurrencyObject.php
T
CheeSiong dec78bf8d7 Create Currency Logic Class
Update Currency Selling Logic Class
Delete Currency Selling Logic Class
Create Currency Log Service Class
2020-11-29 12:39:36 +08:00

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;
}
}