CashVoucherApiModelExpand   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 105
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 105
rs 10
c 0
b 0
f 0

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getDateMap() 0 8 1
A getModelMap() 0 11 1
A getEnumMap() 0 8 1
1
<?php
2
3
namespace Fousky\Component\iDoklad\Model\CashVoucher;
4
5
use Fousky\Component\iDoklad\LOV\EetResponsibilityEnum;
6
use Fousky\Component\iDoklad\LOV\ExportedStateEnum;
7
use Fousky\Component\iDoklad\LOV\MovementTypeEnum;
8
use Fousky\Component\iDoklad\Model\CashRegister\CashRegisterApiModel;
9
use Fousky\Component\iDoklad\Model\Contacts\ContactApiModel;
10
use Fousky\Component\iDoklad\Model\Currencies\CurrencyApiModel;
11
use Fousky\Component\iDoklad\Model\Documents\DocumentAddressApiModel;
12
use Fousky\Component\iDoklad\Model\iDokladAbstractModel;
13
use Fousky\Component\iDoklad\Model\RegisteredSale\RegisteredSaleApiModel;
14
15
/**
16
 * @method null|CashRegisterApiModel getCashRegister()
17
 * @method null|int getCashRegisterId()
18
 * @method null|CurrencyApiModel getCurrency()
19
 * @method null|int getCurrencyId()
20
 * @method null|\DateTime getDateLastChange()
21
 * @method null|\DateTime getDateOfTransaction()
22
 * @method null|string getDocumentNumber()
23
 * @method null|int getDocumentSerialNumber()
24
 * @method null|EetResponsibilityEnum getEetResponsibility()
25
 * @method null|float getExchangeRate()
26
 * @method null|float getExchangeRateAmount()
27
 * @method null|ExportedStateEnum getExported()
28
 * @method null|int getId()
29
 * @method null|bool getIsEet()
30
 * @method null|bool getIsSummarySalesReceipt()
31
 * @method null|CashVoucherItemApiModel getItem()
32
 * @method null|MovementTypeEnum getMovementType()
33
 * @method null|DocumentAddressApiModel getMyCompanyDocumentAddress()
34
 * @method null|int getMyCompanyDocumentAddressId()
35
 * @method null|ContactApiModel getPartnerContact()
36
 * @method null|int getPartnerContactId()
37
 * @method null|DocumentAddressApiModel getPartnerDocumentAddress()
38
 * @method null|int getPartnerDocumentAddressId()
39
 * @method null|string getPerson()
40
 * @method null|RegisteredSaleApiModel getRegisteredSale()
41
 * @method null|\DateTime getSummarySalesReceiptDate()
42
 * @method null|float getTotalVat()
43
 * @method null|float getTotalVatHc()
44
 * @method null|float getTotalWithoutVat()
45
 * @method null|float getTotalWithoutVatHc()
46
 * @method null|float getTotalWithVat()
47
 * @method null|float getTotalWithVatHc()
48
 *
49
 * @author Lukáš Brzák <[email protected]>
50
 */
51
class CashVoucherApiModelExpand extends iDokladAbstractModel
52
{
53
    public $CashRegister;
54
55
    public $CashRegisterId;
56
57
    public $Currency;
58
59
    public $CurrencyId;
60
61
    public $DateLastChange;
62
63
    public $DateOfTransaction;
64
65
    public $DocumentNumber;
66
67
    public $DocumentSerialNumber;
68
69
    public $EetResponsibility;
70
71
    public $ExchangeRate;
72
73
    public $ExchangeRateAmount;
74
75
    public $Exported;
76
77
    public $Id;
78
79
    public $IsEet;
80
81
    public $IsSummarySalesReceipt;
82
83
    public $Item;
84
85
    public $MovementType;
86
87
    public $MyCompanyDocumentAddress;
88
89
    public $MyCompanyDocumentAddressId;
90
91
    public $PartnerContact;
92
93
    public $PartnerContactId;
94
95
    public $PartnerDocumentAddress;
96
97
    public $PartnerDocumentAddressId;
98
99
    public $Person;
100
101
    public $RegisteredSale;
102
103
    public $SummarySalesReceiptDate;
104
105
    public $TotalVat;
106
107
    public $TotalVatHc;
108
109
    public $TotalWithoutVat;
110
111
    public $TotalWithoutVatHc;
112
113
    public $TotalWithVat;
114
115
    public $TotalWithVatHc;
116
117
    /**
118
     * @return array
119
     */
120
    public static function getDateMap(): array
121
    {
122
        return [
123
            'DateLastChange',
124
            'DateOfTransaction',
125
            'SummarySalesReceiptDate',
126
        ];
127
    }
128
129
    /**
130
     * @return array
131
     */
132
    public static function getModelMap(): array
133
    {
134
        return [
135
            'CashRegister' => CashRegisterApiModel::class,
136
            'Currency' => CurrencyApiModel::class,
137
            'Item' => CashVoucherItemApiModel::class,
138
            'MyCompanyDocumentAddress' => DocumentAddressApiModel::class,
139
            'PartnerContact' => ContactApiModel::class,
140
            'RegisteredSale' => RegisteredSaleApiModel::class,
141
        ];
142
    }
143
144
    /**
145
     * @return array
146
     */
147
    public static function getEnumMap(): array
148
    {
149
        return [
150
            'EetResponsibility' => EetResponsibilityEnum::class,
151
            'Exported' => ExportedStateEnum::class,
152
            'MovementType' => MovementTypeEnum::class,
153
        ];
154
    }
155
}
156