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/ReceivedInvoices/ReceivedInvoiceApiModel.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\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
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...
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