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 | class Usecase extends \Phalcon\Mvc\Model |
||
0 ignored issues
–
show
|
|||
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 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.