*/ final class TaxCodeMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'tax_code_id' => ['name' => 'tax_code_id', 'type' => 'int', 'internal' => 'id'], 'tax_code_abbr' => ['name' => 'tax_code_abbr', 'type' => 'string', 'internal' => 'abbr'], 'tax_code_invoice' => ['name' => 'tax_code_invoice', 'type' => 'int', 'internal' => 'percentageInvoice'], 'tax_code_sales' => ['name' => 'tax_code_sales', 'type' => 'int', 'internal' => 'percentageSales'], 'tax_code_input' => ['name' => 'tax_code_input', 'type' => 'int', 'internal' => 'percentageInput'], 'tax_code_tax1_account' => ['name' => 'tax_code_tax1_account', 'type' => 'string', 'internal' => 'taxAccount1'], 'tax_code_tax2_account' => ['name' => 'tax_code_tax2_account', 'type' => 'string', 'internal' => 'taxAccount2'], ]; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'tax_code'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'tax_code_id'; /** * Has many relation. * * @var array * @since 1.0.0 */ public const HAS_MANY = [ 'l11n' => [ 'mapper' => TaxCodeL11nMapper::class, 'table' => 'tax_code_l11n', 'self' => 'tax_code_l11n_code', 'external' => null, ], ]; }