This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | |||
3 | namespace Fousky\Component\iDoklad\Model\ReceivedInvoices; |
||
4 | |||
5 | use Fousky\Component\iDoklad\LOV\ExportedStateEnum; |
||
6 | use Fousky\Component\iDoklad\LOV\PaymentStatusEnum; |
||
7 | use Fousky\Component\iDoklad\LOV\VatOnPayStatusEnum; |
||
8 | use Fousky\Component\iDoklad\Model\iDokladAbstractModel; |
||
9 | |||
10 | /** |
||
11 | * @method null|string getAttachmentFileName() |
||
12 | * @method null|int getCurrencyId() |
||
13 | * @method null|\DateTime getDateCreated() |
||
14 | * @method null|\DateTime getDateLastChange() |
||
15 | * @method null|\DateTime getDateOfAccountingEvent() |
||
16 | * @method null|\DateTime getDateOfIssue() |
||
17 | * @method null|\DateTime getDateOfMaturity() |
||
18 | * @method null|\DateTime getDateOfPayment() |
||
19 | * @method null|\DateTime getDateOfReceiving() |
||
20 | * @method null|\DateTime getDateOfTaxing() |
||
21 | * @method null|\DateTime getDateOfVatApplication() |
||
22 | * @method null|string getDescription() |
||
23 | * @method null|string getDocumentNumber() |
||
24 | * @method null|int getDocumentSerialNumber() |
||
25 | * @method null|float getExchangeRate() |
||
26 | * @method null|float getExchangeRateAmount() |
||
27 | * @method null|ExportedStateEnum getExported() |
||
28 | * @method null|int getId() |
||
29 | * @method null|bool getIsSentToAccountant() |
||
30 | * @method null|ReceivedInvoiceItemApiModel[] getItems() |
||
31 | * @method null|int getMyCompanyDocumentAddressId() |
||
32 | * @method null|string getNote() |
||
33 | * @method null|string getOrderNumber() |
||
34 | * @method null|int getPaymentOptionId() |
||
35 | * @method null|PaymentStatusEnum getPaymentStatus() |
||
36 | * @method null|string getReceivedDocumentNumber() |
||
37 | * @method null|int getSupplierDocumentAddressId() |
||
38 | * @method null|int getSupplierId() |
||
39 | * @method null|float getTotalPaid() |
||
40 | * @method null|float getTotalPaidHc() |
||
41 | * @method null|float getTotalVat() |
||
42 | * @method null|float getTotalVatHc() |
||
43 | * @method null|float getTotalWithoutVat() |
||
44 | * @method null|float getTotalWithoutVatHc() |
||
45 | * @method null|float getTotalWithVat() |
||
46 | * @method null|float getTotalWithVatHc() |
||
47 | * @method null|string getVariableSymbol() |
||
48 | * @method null|VatOnPayStatusEnum getVatOnPayStatus() |
||
49 | * |
||
50 | * @author Lukáš Brzák <[email protected]> |
||
51 | */ |
||
52 | class ReceivedInvoiceApiModel extends iDokladAbstractModel |
||
53 | { |
||
54 | public $AttachmentFileName; |
||
55 | |||
56 | public $CurrencyId; |
||
57 | |||
58 | public $DateCreated; |
||
59 | |||
60 | public $DateLastChange; |
||
61 | |||
62 | public $DateOfAccountingEvent; |
||
63 | |||
64 | public $DateOfIssue; |
||
65 | |||
66 | public $DateOfMaturity; |
||
67 | |||
68 | public $DateOfPayment; |
||
69 | |||
70 | public $DateOfReceiving; |
||
71 | |||
72 | public $DateOfTaxing; |
||
73 | |||
74 | public $DateOfVatApplication; |
||
75 | |||
76 | public $Description; |
||
77 | |||
78 | public $DocumentNumber; |
||
79 | |||
80 | public $DocumentSerialNumber; |
||
81 | |||
82 | public $ExchangeRate; |
||
83 | |||
84 | public $ExchangeRateAmount; |
||
85 | |||
86 | public $Exported; |
||
87 | |||
88 | public $Id; |
||
89 | |||
90 | public $IsSentToAccountant; |
||
91 | |||
92 | public $Items; |
||
93 | |||
94 | public $MyCompanyDocumentAddressId; |
||
95 | |||
96 | public $Note; |
||
97 | |||
98 | public $OrderNumber; |
||
99 | |||
100 | public $PaymentOptionId; |
||
101 | |||
102 | public $PaymentStatus; |
||
103 | |||
104 | public $ReceivedDocumentNumber; |
||
105 | |||
106 | public $SupplierDocumentAddressId; |
||
107 | |||
108 | public $SupplierId; |
||
109 | |||
110 | public $TotalPaid; |
||
111 | |||
112 | public $TotalPaidHc; |
||
113 | |||
114 | public $TotalVat; |
||
115 | |||
116 | public $TotalVatHc; |
||
117 | |||
118 | public $TotalWithoutVat; |
||
119 | |||
120 | public $TotalWithoutVatHc; |
||
121 | |||
122 | public $TotalWithVat; |
||
123 | |||
124 | public $TotalWithVatHc; |
||
125 | |||
126 | public $VariableSymbol; |
||
127 | |||
128 | public $VatOnPayStatus; |
||
129 | |||
130 | /** |
||
131 | * @return array |
||
132 | */ |
||
133 | public static function getModelMap(): array |
||
134 | { |
||
135 | return [ |
||
136 | 'Items' => ReceivedInvoiceItemApiModel::class, |
||
137 | ]; |
||
138 | } |
||
139 | |||
140 | /** |
||
141 | * @return array |
||
142 | */ |
||
143 | public static function getEnumMap(): array |
||
144 | { |
||
145 | return [ |
||
146 | 'Exported' => ExportedStateEnum::class, |
||
147 | 'PaymentStatus' => PaymentStatusEnum::class, |
||
148 | 'VatOnPayStatus' => VatOnPayStatusEnum::class, |
||
149 | ]; |
||
150 | } |
||
151 | |||
152 | /** |
||
153 | * @return array |
||
154 | */ |
||
155 | View Code Duplication | public static function getDateMap(): array |
|
0 ignored issues
–
show
|
|||
156 | { |
||
157 | return [ |
||
158 | 'DateCreated', |
||
159 | 'DateLastChange', |
||
160 | 'DateOfAccountingEvent', |
||
161 | 'DateOfIssue', |
||
162 | 'DateOfMaturity', |
||
163 | 'DateOfPayment', |
||
164 | 'DateOfReceiving', |
||
165 | 'DateOfTaxing', |
||
166 | 'DateOfVatApplication', |
||
167 | ]; |
||
168 | } |
||
169 | } |
||
170 |
Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.
You can also find more detailed suggestions in the “Code” section of your repository.