Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||
CostCenterL11nMapper | 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 Modules\Accounting\Models |
8 | * @copyright Dennis Eichhorn |
9 | * @license OMS License 2.0 |
10 | * @version 1.0.0 |
11 | * @link https://jingga.app |
12 | */ |
13 | declare(strict_types=1); |
14 | |
15 | namespace Modules\Accounting\Models; |
16 | |
17 | use phpOMS\DataStorage\Database\Mapper\DataMapperFactory; |
18 | use phpOMS\Localization\BaseStringL11n; |
19 | |
20 | /** |
21 | * CostCenter mapper class. |
22 | * |
23 | * @package Modules\Accounting\Models |
24 | * @license OMS License 2.0 |
25 | * @link https://jingga.app |
26 | * @since 1.0.0 |
27 | * |
28 | * @template T of BaseStringL11n |
29 | * @extends DataMapperFactory<T> |
30 | */ |
31 | final class CostCenterL11nMapper extends DataMapperFactory |
32 | { |
33 | /** |
34 | * Columns. |
35 | * |
36 | * @var array<string, array{name:string, type:string, internal:string, autocomplete?:bool, readonly?:bool, writeonly?:bool, annotations?:array}> |
37 | * @since 1.0.0 |
38 | */ |
39 | public const COLUMNS = [ |
40 | 'accounting_costcenter_l11n_id' => ['name' => 'accounting_costcenter_l11n_id', 'type' => 'int', 'internal' => 'id'], |
41 | 'accounting_costcenter_l11n_name' => ['name' => 'accounting_costcenter_l11n_name', 'type' => 'string', 'internal' => 'name', 'autocomplete' => true], |
42 | 'accounting_costcenter_l11n_description' => ['name' => 'accounting_costcenter_l11n_description', 'type' => 'string', 'internal' => 'description', 'autocomplete' => true], |
43 | 'accounting_costcenter_l11n_costcenter' => ['name' => 'accounting_costcenter_l11n_costcenter', 'type' => 'int', 'internal' => 'costcenter'], |
44 | 'accounting_costcenter_l11n_language' => ['name' => 'accounting_costcenter_l11n_language', 'type' => 'string', 'internal' => 'language'], |
45 | ]; |
46 | |
47 | /** |
48 | * Primary table. |
49 | * |
50 | * @var string |
51 | * @since 1.0.0 |
52 | */ |
53 | public const TABLE = 'accounting_costcenter_l11n'; |
54 | |
55 | /** |
56 | * Primary field name. |
57 | * |
58 | * @var string |
59 | * @since 1.0.0 |
60 | */ |
61 | public const PRIMARYFIELD = 'accounting_costcenter_l11n_id'; |
62 | } |