Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
IbanMapper
n/a
0 / 0
n/a
0 / 0
0
n/a
0 / 0
1<?php
2/**
3 * Jingga
4 *
5 * PHP Version 8.1
6 *
7 * @package   phpOMS\Localization\Defaults
8 * @copyright Dennis Eichhorn
9 * @license   OMS License 2.0
10 * @version   1.0.0
11 * @link      https://jingga.app
12 */
13declare(strict_types=1);
14
15namespace phpOMS\Localization\Defaults;
16
17use phpOMS\DataStorage\Database\Mapper\DataMapperFactory;
18
19/**
20 * Mapper class.
21 *
22 * @package phpOMS\Localization\Defaults
23 * @license OMS License 2.0
24 * @link    https://jingga.app
25 * @since   1.0.0
26 *
27 * @template T of Iban
28 * @extends DataMapperFactory<T>
29 */
30class IbanMapper extends DataMapperFactory
31{
32    /**
33     * Columns.
34     *
35     * @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, readonly?:bool, writeonly?:bool, annotations?:array}>
36     * @since 1.0.0
37     */
38    public const COLUMNS = [
39        'iban_id'      => ['name' => 'iban_id',      'type' => 'int',    'internal' => 'id'],
40        'iban_country' => ['name' => 'iban_country', 'type' => 'string', 'internal' => 'country'],
41        'iban_chars'   => ['name' => 'iban_chars',   'type' => 'int',    'internal' => 'chars'],
42        'iban_bban'    => ['name' => 'iban_bban',    'type' => 'string', 'internal' => 'bban'],
43        'iban_fields'  => ['name' => 'iban_fields',  'type' => 'string', 'internal' => 'fields'],
44    ];
45
46    /**
47     * Primary table.
48     *
49     * @var string
50     * @since 1.0.0
51     */
52    public const TABLE = 'iban';
53
54    /**
55     * Primary field name.
56     *
57     * @var string
58     * @since 1.0.0
59     */
60    public const PRIMARYFIELD = 'iban_id';
61}