[ Mini Kiebo ]
Server: Windows NT AKFAR_SERVER 10.0 build 26200 (Windows 10) AMD64
Path:
D:
/
Jurnal PSCP
/
lib
/
pkp
/
lib
/
vendor
/
sokil
/
php-isocodes
/
src
/
Database
/
Currencies
/
[
Home
]
File: Currency.php
<?php declare(strict_types=1); namespace Sokil\IsoCodes\Database\Currencies; use Sokil\IsoCodes\Database\Currencies; class Currency { /** * @var string */ private $letterCode; /** * @var integer */ private $numericCode; /** * @var string */ private $name; /** * @var string */ private $localName; public function __construct( string $name, string $letterCode, int $numericCode ) { $this->name = $name; $this->letterCode = $letterCode; $this->numericCode = $numericCode; } public function getName(): string { return $this->name; } public function getLocalName(): string { if ($this->localName === null) { $this->localName = dgettext( Currencies::getISONumber(), $this->name ); } return $this->localName; } public function getLetterCode(): string { return $this->letterCode; } public function getNumericCode(): int { return $this->numericCode; } }