*/ class CountryMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'country_id' => ['name' => 'country_id', 'type' => 'int', 'internal' => 'id'], 'country_name' => ['name' => 'country_name', 'type' => 'string', 'internal' => 'name'], 'country_code2' => ['name' => 'country_code2', 'type' => 'string', 'internal' => 'code2'], 'country_code3' => ['name' => 'country_code3', 'type' => 'string', 'internal' => 'code3'], 'country_numeric' => ['name' => 'country_numeric', 'type' => 'int', 'internal' => 'numeric'], 'country_developed' => ['name' => 'country_developed', 'type' => 'bool', 'internal' => 'isDeveloped'], ]; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'country'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'country_id'; }