class CurrencyDataGenerator extends AbstractDataGenerator

The rule for compiling the currency bundle.

Constants

UNKNOWN_CURRENCY_ID

EUROPEAN_COMPOSITE_UNIT_ID

EUROPEAN_MONETARY_UNIT_ID

EUROPEAN_UNIT_OF_ACCOUNT_XBC_ID

EUROPEAN_UNIT_OF_ACCOUNT_XBD_ID

TESTING_CURRENCY_CODE_ID

ADB_UNIT_OF_ACCOUNT_ID

GOLD_ID

SILVER_ID

PLATINUM_ID

PALLADIUM_ID

SUCRE_ID

SPECIAL_DRAWING_RIGHTS_ID

Methods

__construct(GenrbCompiler $compiler, $dirName)

No description

generateData(GeneratorConfig $config)

No description

string[]
scanLocales(LocaleScanner $scanner, string $sourceDir)

No description

compileTemporaryBundles(GenrbCompiler $compiler, string $sourceDir, string $tempDir)

No description

preGenerate()

No description

array|null
generateDataForLocale(BundleReaderInterface $reader, string $tempDir, string $displayLocale)

No description

array|null
generateDataForRoot(BundleReaderInterface $reader, string $tempDir)

No description

array|null
generateDataForMeta(BundleReaderInterface $reader, string $tempDir)

No description

Details

in AbstractDataGenerator at line 32
__construct(GenrbCompiler $compiler, $dirName)

Parameters

GenrbCompiler $compiler
$dirName

in AbstractDataGenerator at line 38
generateData(GeneratorConfig $config)

Parameters

GeneratorConfig $config

at line 71
protected string[] scanLocales(LocaleScanner $scanner, string $sourceDir)

Parameters

LocaleScanner $scanner
string $sourceDir

Return Value

string[]

at line 79
protected compileTemporaryBundles(GenrbCompiler $compiler, string $sourceDir, string $tempDir)

Parameters

GenrbCompiler $compiler
string $sourceDir
string $tempDir

at line 88
protected preGenerate()

at line 96
protected array|null generateDataForLocale(BundleReaderInterface $reader, string $tempDir, string $displayLocale)

Parameters

BundleReaderInterface $reader
string $tempDir
string $displayLocale

Return Value

array|null

at line 115
protected array|null generateDataForRoot(BundleReaderInterface $reader, string $tempDir)

Parameters

BundleReaderInterface $reader
string $tempDir

Return Value

array|null

at line 128
protected array|null generateDataForMeta(BundleReaderInterface $reader, string $tempDir)

Parameters

BundleReaderInterface $reader
string $tempDir

Return Value

array|null