Issues (100)

Security Analysis    not enabled

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.

src/Entities/PatientZZ.php (2 issues)

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
 * PatientZZ
4
 *
5
 * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED
6
 * OR IMPLIED. ANY USE IS AT YOUR OWN RISK.
7
 *
8
 * Permission is hereby granted to use or copy this program
9
 * for any purpose, provided the above notices are retained on all copies.
10
 * Permission to modify the code and to distribute modified code is granted,
11
 * provided the above notices are retained, and a notice that the code was
12
 * modified is included with the above copyright notice.
13
 *
14
 * @category  Wp
15
 * @package   Punction
16
 * @author    Andrzej Marcinkowski <[email protected]>
17
 * @copyright 2014 Wojewódzki Szpital Zespolony, Kalisz
18
 * @license   MIT http://opensource.org/licenses/MIT
19
 * @version   1.0 $Format:%H$
20
 * @link      http://
21
 * @since     File available since Release 1.0.0
22
 * PHP Version 5
23
 */
24
namespace Hospitalplugin\Entities;
25
26
/**
27
 * PatientZZ
28
 *
29
 * @category  Wp
30
 * @package   Punction
31
 * @author    Andrzej Marcinkowski <[email protected]>
32
 * @copyright 2014 Wojewódzki Szpital Zespolony, Kalisz
33
 * @license   MIT http://opensource.org/licenses/MIT
34
 * @version   1.0 $Format:%H$
35
 * @link      http://
36
 * @since     File available since Release 1.0.0
37
 *      
38
 * @Entity
39
 */
40 View Code Duplication
class PatientZZ extends Patient
0 ignored issues
show
This class 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...
41
{
42
43
    /**
44
     * @var string $typ typ pacjenta
45
     */
46
    protected $typ = "ZZ";
47
48
    /**
49
     * @Column(columnDefinition="TINYINT(4) DEFAULT 0") *
50
     */
51
    public $aktywnoscFizyczna;
52
53
    /**
54
     * @Column(columnDefinition="TINYINT(4) DEFAULT 0") *
55
     */
56
    public $higiena;
57
58
    /**
59
     * @Column(columnDefinition="TINYINT(4) DEFAULT 0") *
60
     */
61
    public $odzywianie;
62
63
    /**
64
     * @Column(columnDefinition="TINYINT(4) DEFAULT 0") *
65
     */
66
    public $wydalanie;
67
68
    /**
69
     * @Column(columnDefinition="TINYINT(4) DEFAULT 0") *
70
     */
71
    public $pomiarObjawowZyciowych;
72
73
    /**
74
     * @Column(columnDefinition="TINYINT(4) DEFAULT 0") *
75
     */
76
    public $leczenie;
77
78
    /**
79
     * @Column(columnDefinition="TINYINT(4) DEFAULT 0") *
80
     */
81
    public $edukacjaIWsparciePsychiczne;
82
    //
83
    /**
84
     * @return aktywnoscFizyczna
85
     */
86
    public function getAktywnoscFizyczna()
87
    {
88
        return $this->aktywnoscFizyczna;
89
    }
90
91
    /**
92
     * @param int $aktywnoscFizyczna int aktywnoscFizyczna
93
     * @return PatientZZ
94
     */
95
    public function setAktywnoscFizyczna($aktywnoscFizyczna)
96
    {
97
        $this->aktywnoscFizyczna = $aktywnoscFizyczna;
98
        return $this;
99
    }
100
101
    /**
102
     * @return higiena
103
     */
104
    public function getHigiena()
105
    {
106
        return $this->higiena;
107
    }
108
109
    /**
110
     * @param int $higiena int higiena
111
     * @return PatientZZ
112
     */
113
    public function setHigiena($higiena)
114
    {
115
        $this->higiena = $higiena;
116
        return $this;
117
    }
118
119
    /**
120
     * @return odzywianie
121
     */
122
    public function getOdzywianie()
123
    {
124
        return $this->odzywianie;
125
    }
126
127
    /**
128
     * @param  int $odzywianie int odzywianie
129
     * @return PatientZZ
130
     */
131
    public function setOdzywianie($odzywianie)
132
    {
133
        $this->odzywianie = $odzywianie;
134
        return $this;
135
    }
136
137
    /**
138
     * @return wydalanie
139
     */
140
    public function getWydalanie()
141
    {
142
        return $this->wydalanie;
143
    }
144
145
    /**
146
     * @param  int $wydalanie int wydalanie
147
     * @return PatientZZ
148
     */
149
    public function setWydalanie($wydalanie)
150
    {
151
        $this->wydalanie = $wydalanie;
152
        return $this;
153
    }
154
155
    /**
156
     * @return pomiarObjawowZyciowych
157
     */
158
    public function getPomiarObjawowZyciowych()
159
    {
160
        return $this->pomiarObjawowZyciowych;
161
    }
162
163
    /**
164
     * @param  int $pomiarObjawowZyciowych int pomiarObjawowZyciowych
165
     * @return PatientZZ
166
     */
167
    public function setPomiarObjawowZyciowych($pomiarObjawowZyciowych)
168
    {
169
        $this->pomiarObjawowZyciowych = $pomiarObjawowZyciowych;
170
        return $this;
171
    }
172
173
    /**
174
     * @return leczenie
175
     */
176
    public function getLeczenie()
177
    {
178
        return $this->leczenie;
179
    }
180
181
    /**
182
     * @param  int $leczenie int leczenie
183
     * @return PatientZZ
184
     */
185
    public function setLeczenie($leczenie)
186
    {
187
        $this->leczenie = $leczenie;
188
        return $this;
189
    }
190
191
    /**
192
     * @return edukacjaIWsparciePsychiczne
193
     */
194
    public function getEdukacjaIWsparciePsychiczne()
195
    {
196
        return $this->edukacjaIWsparciePsychiczne;
197
    }
198
199
    /**
200
     * @param  int $edukacjaIWsparciePsychiczne int edukacjaIWsparciePsychiczne
201
     * @return PatientZZ
202
     */
203
    public function setEdukacjaIWsparciePsychiczne($edukacjaIWsparciePsychiczne)
204
    {
205
        $this->edukacjaIWsparciePsychiczne = $edukacjaIWsparciePsychiczne;
206
        return $this;
207
    }
208
209
    /**
210
     * 
211
     * @return multitype:string
0 ignored issues
show
The doc-type multitype:string could not be parsed: Unknown type name "multitype:string" at position 0. (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
212
     */
213
    public static function getFields()
214
    {
215
        $superFields = parent::getFields();
216
        $fields = array_merge($superFields, array(
217
            "aktywnoscFizyczna",
218
            "higiena",
219
            "odzywianie",
220
            "wydalanie",
221
            "pomiarObjawowZyciowych",
222
            "leczenie",
223
            "edukacjaIWsparciePsychiczne"
224
        ));
225
        return $fields;
226
    }
227
228
}
229