*/ final class ContactMapper extends DataMapperFactory { /** * Columns. * * @var array * @since 1.0.0 */ public const COLUMNS = [ 'contact_id' => ['name' => 'contact_id', 'type' => 'int', 'internal' => 'id'], 'contact_title' => ['name' => 'contact_title', 'type' => 'string', 'internal' => 'title'], 'contact_type' => ['name' => 'contact_type', 'type' => 'int', 'internal' => 'type'], 'contact_subtype' => ['name' => 'contact_subtype', 'type' => 'int', 'internal' => 'subtype'], 'contact_content' => ['name' => 'contact_content', 'type' => 'string', 'internal' => 'content'], ]; /** * Primary table. * * @var string * @since 1.0.0 */ public const TABLE = 'contact'; /** * Primary field name. * * @var string * @since 1.0.0 */ public const PRIMARYFIELD = 'contact_id'; }