*/ final class CurrencyMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'currency_id' => ['name' => 'currency_id', 'type' => 'int', 'internal' => 'id'], 'currency_name' => ['name' => 'currency_name', 'type' => 'string', 'internal' => 'name'], 'currency_code' => ['name' => 'currency_code', 'type' => 'string', 'internal' => 'code'], 'currency_number' => ['name' => 'currency_number', 'type' => 'string', 'internal' => 'number'], 'currency_symbol' => ['name' => 'currency_symbol', 'type' => 'string', 'internal' => 'symbol'], 'currency_subunits' => ['name' => 'currency_subunits', 'type' => 'int', 'internal' => 'subunits'], 'currency_decimal' => ['name' => 'currency_decimal', 'type' => 'string', 'internal' => 'decimals'], 'currency_countries' => ['name' => 'currency_countries', 'type' => 'string', 'internal' => 'countries'], ]; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'currency'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'currency_id'; }