Issues (48)

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.

app/models/Usecase.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
class Usecase extends \Phalcon\Mvc\Model
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
4
{
5
6
    /**
7
     *
8
     * @var string
9
     */
10
    protected $code;
11
12
13
    protected $id;
14
    /**
15
     *
16
     * @var string
17
     */
18
    protected $nom;
19
20
    /**
21
     *
22
     * @var integer
23
     */
24
    protected $poids;
25
26
    /**
27
     *
28
     * @var integer
29
     */
30
    protected $avancement;
31
32
    /**
33
     *
34
     * @var integer
35
     */
36
    protected $idProjet;
37
38
    /**
39
     *
40
     * @var integer
41
     */
42
    protected $idDev;
43
44
    /**
45
     * @return mixed
46
     */
47
    public function getId()
48
    {
49
        return $this->id;
50
    }
51
52
    /**
53
     * @param mixed $id
54
     */
55
    public function setId($id)
56
    {
57
        $this->id = $id;
58
    }
59
60
    /**
61
     * Method to set the value of field code
62
     *
63
     * @param string $code
64
     * @return $this
65
     */
66
67
68
    public function setCode($code)
69
    {
70
        $this->code = $code;
71
72
        return $this;
73
    }
74
75
    /**
76
     * Method to set the value of field nom
77
     *
78
     * @param string $nom
79
     * @return $this
80
     */
81
    public function setNom($nom)
82
    {
83
        $this->nom = $nom;
84
85
        return $this;
86
    }
87
88
    /**
89
     * Method to set the value of field poids
90
     *
91
     * @param integer $poids
92
     * @return $this
93
     */
94
    public function setPoids($poids)
95
    {
96
        $this->poids = $poids;
97
98
        return $this;
99
    }
100
101
    /**
102
     * Method to set the value of field avancement
103
     *
104
     * @param integer $avancement
105
     * @return $this
106
     */
107
    public function setAvancement($avancement)
108
    {
109
        $this->avancement = $avancement;
110
111
        return $this;
112
    }
113
114
    /**
115
     * Method to set the value of field idProjet
116
     *
117
     * @param integer $idProjet
118
     * @return $this
119
     */
120
    public function setIdProjet($idProjet)
121
    {
122
        $this->idProjet = $idProjet;
123
124
        return $this;
125
    }
126
127
    /**
128
     * Method to set the value of field idDev
129
     *
130
     * @param integer $idDev
131
     * @return $this
132
     */
133
    public function setIdDev($idDev)
134
    {
135
        $this->idDev = $idDev;
136
137
        return $this;
138
    }
139
140
    /**
141
     * Returns the value of field code
142
     *
143
     * @return string
144
     */
145
    public function getCode()
146
    {
147
        return $this->code;
148
    }
149
150
    /**
151
     * Returns the value of field nom
152
     *
153
     * @return string
154
     */
155
    public function getNom()
156
    {
157
        return $this->nom;
158
    }
159
160
    /**
161
     * Returns the value of field poids
162
     *
163
     * @return integer
164
     */
165
    public function getPoids()
166
    {
167
        return $this->poids;
168
    }
169
170
    /**
171
     * Returns the value of field avancement
172
     *
173
     * @return integer
174
     */
175
    public function getAvancement()
176
    {
177
        return $this->avancement;
178
    }
179
180
    /**
181
     * Returns the value of field idProjet
182
     *
183
     * @return integer
184
     */
185
    public function getIdProjet()
186
    {
187
        return $this->idProjet;
188
    }
189
190
    /**
191
     * Returns the value of field idDev
192
     *
193
     * @return integer
194
     */
195
    public function getIdDev()
196
    {
197
        return $this->idDev;
198
    }
199
200
    /**
201
     * Initialize method for model.
202
     */
203
    public function initialize()
204
    {
205
        $this->hasMany('code', 'Tache', 'codeUseCase', array('alias' => 'Taches'));
206
        $this->belongsTo('idProjet', 'Projet', 'id', array('alias' => 'Projet'));
207
        $this->belongsTo('idDev', 'User', 'id', array('alias' => 'User'));
208
    }
209
210
    /**
211
     * Returns table name mapped in the model.
212
     *
213
     * @return string
214
     */
215
    public function getSource()
216
    {
217
        return 'usecase';
218
    }
219
220
    /**
221
     * Allows to query a set of records that match the specified conditions
222
     *
223
     * @param mixed $parameters
224
     * @return Usecase[]
225
     */
226
    public static function find($parameters = null)
227
    {
228
        return parent::find($parameters);
229
    }
230
231
    /**
232
     * Allows to query the first record that match the specified conditions
233
     *
234
     * @param mixed $parameters
235
     * @return Usecase
236
     */
237
    public static function findFirst($parameters = null)
238
    {
239
        return parent::findFirst($parameters);
240
    }
241
242
    public function toString()
243
    {
244
        return $this->nom . " (" . $this->avancement . ")";
245
    }
246
}
247