Issues (129)

Security Analysis    no request data  

This project does not seem to handle request data directly as such no vulnerable execution paths were found.

  Cross-Site Scripting
Cross-Site Scripting enables an attacker to inject code into the response of a web-request that is viewed by other users. It can for example be used to bypass access controls, or even to take over other users' accounts.
  File Exposure
File Exposure allows an attacker to gain access to local files that he should not be able to access. These files can for example include database credentials, or other configuration files.
  File Manipulation
File Manipulation enables an attacker to write custom data to files. This potentially leads to injection of arbitrary code on the server.
  Object Injection
Object Injection enables an attacker to inject an object into PHP code, and can lead to arbitrary code execution, file exposure, or file manipulation attacks.
  Code Injection
Code Injection enables an attacker to execute arbitrary code on the server.
  Response Splitting
Response Splitting can be used to send arbitrary responses.
  File Inclusion
File Inclusion enables an attacker to inject custom files into PHP's file loading mechanism, either explicitly passed to include, or for example via PHP's auto-loading mechanism.
  Command Injection
Command Injection enables an attacker to inject a shell command that is execute with the privileges of the web-server. This can be used to expose sensitive data, or gain access of your server.
  SQL Injection
SQL Injection enables an attacker to execute arbitrary SQL code on your database server gaining access to user data, or manipulating user data.
  XPath Injection
XPath Injection enables an attacker to modify the parts of XML document that are read. If that XML document is for example used for authentication, this can lead to further vulnerabilities similar to SQL Injection.
  LDAP Injection
LDAP Injection enables an attacker to inject LDAP statements potentially granting permission to run unauthorized queries, or modify content inside the LDAP tree.
  Header Injection
  Other Vulnerability
This category comprises other attack vectors such as manipulating the PHP runtime, loading custom extensions, freezing the runtime, or similar.
  Regex Injection
Regex Injection enables an attacker to execute arbitrary code in your PHP process.
  XML Injection
XML Injection enables an attacker to read files on your local filesystem including configuration files, or can be abused to freeze your web-server process.
  Variable Injection
Variable Injection enables an attacker to overwrite program variables with custom data, and can lead to further vulnerabilities.
Unfortunately, the security analysis is currently not available for your project. If you are a non-commercial open-source project, please contact support to gain access.

Model/CreditNotes/CreditNoteApiModel.php (1 issue)

Upgrade to new PHP Analysis Engine

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\CreditNotes;
4
5
use Fousky\Component\iDoklad\LOV\EetResponsibilityEnum;
6
use Fousky\Component\iDoklad\LOV\ExportedStateEnum;
7
use Fousky\Component\iDoklad\LOV\PaymentStatusEnum;
8
use Fousky\Component\iDoklad\LOV\VatOnPayStatusEnum;
9
use Fousky\Component\iDoklad\Model\iDokladAbstractModel;
10
11
/**
12
 * @see https://app.idoklad.cz/developer/Help/v2/cs/ResourceModel?modelName=CreditNoteApiModel
13
 *
14
 * @method null|string getAttachmentFileName()
15
 * @method null|float getBaseTaxBasicRate()
16
 * @method null|float getBaseTaxBasicRateHc()
17
 * @method null|float getBaseTaxReducedRate1()
18
 * @method null|float getBaseTaxReducedRate1Hc()
19
 * @method null|float getBaseTaxReducedRate2()
20
 * @method null|float getBaseTaxReducedRate2Hc()
21
 * @method null|float getBaseTaxZeroRate()
22
 * @method null|float getBaseTaxZeroRateHc()
23
 * @method null|int getConstantSymbolId()
24
 * @method null|int getCreditNoteForDocumentId()
25
 * @method null|CreditNoteItemApiModel[] getCreditNoteItems()
26
 * @method null|string getCreditNoteReason()
27
 * @method null|int getCurrencyId()
28
 * @method null|\DateTime getDateLastChange()
29
 * @method null|\DateTime getDateOfAccountingEvent()
30
 * @method null|\DateTime getDateOfIssue()
31
 * @method null|\DateTime getDateOfLastReminder()
32
 * @method null|\DateTime getDateOfMaturity()
33
 * @method null|\DateTime getDateOfPayment()
34
 * @method null|\DateTime getDateOfTaxing()
35
 * @method null|\DateTime getDateOfVatApplication()
36
 * @method null|\DateTime getDateOfVatClaim()
37
 * @method null|string getDescription()
38
 * @method null|float getDiscount()
39
 * @method null|string getDocumentNumber()
40
 * @method null|int getDocumentSerialNumber()
41
 * @method null|EetResponsibilityEnum getEetResponsibility()
42
 * @method null|float getExchangeRate()
43
 * @method null|float getExchangeRateAmount()
44
 * @method null|ExportedStateEnum getExported()
45
 * @method null|int getId()
46
 * @method null|bool getIsEet()
47
 * @method null|bool getIsSentToAccountant()
48
 * @method null|bool getIsSentToPurchaser()
49
 * @method null|string getItemsTextPrefix()
50
 * @method null|string getItemsTextSuffix()
51
 * @method null|int getLanguageId()
52
 * @method null|int getMaturity()
53
 * @method null|int getMyCompanyDocumentAdrressId()
54
 * @method null|string getNote()
55
 * @method null|string getNoteForCreditNote()
56
 * @method null|int getNumericSequenceId()
57
 * @method null|string getOrderNumber()
58
 * @method null|int getPaymentOptionId()
59
 * @method null|PaymentStatusEnum getPaymentStatus()
60
 * @method null|int getPurchaserDocumentAddressId()
61
 * @method null|int getPurchaserId()
62
 * @method null|int getRemindersCount()
63
 * @method null|string getReportColorValue()
64
 * @method null|int getReportId()
65
 * @method null|float getRoundingDifference()
66
 * @method null|float getTaxBasicRate()
67
 * @method null|float getTaxBasicRateHc()
68
 * @method null|float getTaxReducedRate1()
69
 * @method null|float getTaxReducedRate1Hc()
70
 * @method null|float getTaxReducedRate2()
71
 * @method null|float getTaxReducedRate2Hc()
72
 * @method null|float getTotalBasicRate()
73
 * @method null|float getTotalBasicRateHc()
74
 * @method null|float getTotalReducedRate1()
75
 * @method null|float getTotalReducedRate1Hc()
76
 * @method null|float getTotalReducedRate2()
77
 * @method null|float getTotalReducedRate2Hc()
78
 * @method null|float getTotalVat()
79
 * @method null|float getTotalVatHc()
80
 * @method null|float getTotalWithoutVat()
81
 * @method null|float getTotalWithoutVatHc()
82
 * @method null|float getTotalWithVat()
83
 * @method null|float getTotalWithVatHc()
84
 * @method null|string getVariableSymbol()
85
 * @method null|VatOnPayStatusEnum getVatOnPayStatus()
86
 * @method null|float getVatRateBasic()
87
 * @method null|float getVatRateReduced1()
88
 * @method null|float getVatRateReduced2()
89
 *
90
 * @author Lukáš Brzák <[email protected]>
91
 */
92
class CreditNoteApiModel extends iDokladAbstractModel
93
{
94
    public $AttachmentFileName;
95
96
    public $BaseTaxBasicRate;
97
98
    public $BaseTaxBasicRateHc;
99
100
    public $BaseTaxReducedRate1;
101
102
    public $BaseTaxReducedRate1Hc;
103
104
    public $BaseTaxReducedRate2;
105
106
    public $BaseTaxReducedRate2Hc;
107
108
    public $BaseTaxZeroRate;
109
110
    public $BaseTaxZeroRateHc;
111
112
    public $ConstantSymbolId;
113
114
    public $CreditNoteForDocumentId;
115
116
    public $CreditNoteItems;
117
118
    public $CreditNoteReason;
119
120
    public $CurrencyId;
121
122
    public $DateLastChange;
123
124
    public $DateOfAccountingEvent;
125
126
    public $DateOfIssue;
127
128
    public $DateOfLastReminder;
129
130
    public $DateOfMaturity;
131
132
    public $DateOfPayment;
133
134
    public $DateOfTaxing;
135
136
    public $DateOfVatApplication;
137
138
    public $DateOfVatClaim;
139
140
    public $Description;
141
142
    public $Discount;
143
144
    public $DocumentNumber;
145
146
    public $DocumentSerialNumber;
147
148
    public $EetResponsibility;
149
150
    public $ExchangeRate;
151
152
    public $ExchangeRateAmount;
153
154
    public $Exported;
155
156
    public $Id;
157
158
    public $IsEet;
159
160
    public $IsSentToAccountant;
161
162
    public $IsSentToPurchaser;
163
164
    public $ItemsTextPrefix;
165
166
    public $ItemsTextSuffix;
167
168
    public $LanguageId;
169
170
    public $Maturity;
171
172
    public $MyCompanyDocumentAdrressId;
173
174
    public $Note;
175
176
    public $NoteForCreditNote;
177
178
    public $NumericSequenceId;
179
180
    public $OrderNumber;
181
182
    public $PaymentOptionId;
183
184
    public $PaymentStatus;
185
186
    public $PurchaserDocumentAddressId;
187
188
    public $PurchaserId;
189
190
    public $RemindersCount;
191
192
    public $ReportColorValue;
193
194
    public $ReportId;
195
196
    public $RoundingDifference;
197
198
    public $TaxBasicRate;
199
200
    public $TaxBasicRateHc;
201
202
    public $TaxReducedRate1;
203
204
    public $TaxReducedRate1Hc;
205
206
    public $TaxReducedRate2;
207
208
    public $TaxReducedRate2Hc;
209
210
    public $TotalBasicRate;
211
212
    public $TotalBasicRateHc;
213
214
    public $TotalReducedRate1;
215
216
    public $TotalReducedRate1Hc;
217
218
    public $TotalReducedRate2;
219
220
    public $TotalReducedRate2Hc;
221
222
    public $TotalVat;
223
224
    public $TotalVatHc;
225
226
    public $TotalWithoutVat;
227
228
    public $TotalWithoutVatHc;
229
230
    public $TotalWithVat;
231
232
    public $TotalWithVatHc;
233
234
    public $VariableSymbol;
235
236
    public $VatOnPayStatus;
237
238
    public $VatRateBasic;
239
240
    public $VatRateReduced1;
241
242
    public $VatRateReduced2;
243
244
    /**
245
     * @return array
246
     */
247
    public static function getDateMap(): array
248
    {
249
        return [
250
            'DateLastChange',
251
            'DateOfAccountingEvent',
252
            'DateOfIssue',
253
            'DateOfLastReminder',
254
            'DateOfMaturity',
255
            'DateOfPayment',
256
            'DateOfTaxing',
257
            'DateOfVatApplication',
258
            'DateOfVatClaim',
259
        ];
260
    }
261
262
    /**
263
     * @return array
264
     */
265 View Code Duplication
    public static function getEnumMap(): array
0 ignored issues
show
This method seems to be duplicated in your project.

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.

Loading history...
266
    {
267
        return [
268
            'EetResponsibility' => EetResponsibilityEnum::class,
269
            'Exported' => ExportedStateEnum::class,
270
            'PaymentStatus' => PaymentStatusEnum::class,
271
            'VatOnPayStatus' => VatOnPayStatusEnum::class,
272
        ];
273
    }
274
275
    /**
276
     * @return array
277
     */
278
    public static function getModelMap(): array
279
    {
280
        return [
281
            'CreditNoteItems' => CreditNoteItemApiModel::class,
282
        ];
283
    }
284
}
285