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 | namespace OmnideskBundle\Request\User; |
||
3 | |||
4 | use OmnideskBundle\Request\RequestInterface; |
||
5 | |||
6 | /** |
||
7 | * Class AddUserRequest |
||
8 | * @package OmnideskBundle\Request\User |
||
9 | */ |
||
10 | View Code Duplication | class AddUserRequest implements RequestInterface |
|
0 ignored issues
–
show
|
|||
11 | { |
||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | private $email; |
||
16 | |||
17 | /** |
||
18 | * @var string |
||
19 | */ |
||
20 | private $phone; |
||
21 | |||
22 | /** |
||
23 | * @var string |
||
24 | */ |
||
25 | private $fullName; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | private $companyName; |
||
31 | |||
32 | /** |
||
33 | * @var string |
||
34 | */ |
||
35 | private $companyPosition; |
||
36 | |||
37 | /** |
||
38 | * @var string |
||
39 | */ |
||
40 | private $note; |
||
41 | |||
42 | /** |
||
43 | * @var int |
||
44 | */ |
||
45 | private $languageId; |
||
46 | |||
47 | /** |
||
48 | * @var array |
||
49 | */ |
||
50 | private $customFields; |
||
51 | |||
52 | /** |
||
53 | * @return string |
||
54 | */ |
||
55 | public function getEmail() |
||
56 | { |
||
57 | return $this->email; |
||
58 | } |
||
59 | |||
60 | /** |
||
61 | * @param string $email |
||
62 | * @return $this |
||
63 | */ |
||
64 | public function setEmail($email) |
||
65 | { |
||
66 | $this->email = $email; |
||
67 | |||
68 | return $this; |
||
69 | } |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getPhone() |
||
75 | { |
||
76 | return $this->phone; |
||
77 | } |
||
78 | |||
79 | /** |
||
80 | * @param string $phone |
||
81 | * @return $this |
||
82 | */ |
||
83 | public function setPhone($phone) |
||
84 | { |
||
85 | $this->phone = $phone; |
||
86 | |||
87 | return $this; |
||
88 | } |
||
89 | |||
90 | /** |
||
91 | * @return string |
||
92 | */ |
||
93 | public function getFullName() |
||
94 | { |
||
95 | return $this->fullName; |
||
96 | } |
||
97 | |||
98 | /** |
||
99 | * @param string $fullName |
||
100 | * @return $this |
||
101 | */ |
||
102 | public function setFullName($fullName) |
||
103 | { |
||
104 | $this->fullName = $fullName; |
||
105 | |||
106 | return $this; |
||
107 | } |
||
108 | |||
109 | /** |
||
110 | * @return string |
||
111 | */ |
||
112 | public function getCompanyName() |
||
113 | { |
||
114 | return $this->companyName; |
||
115 | } |
||
116 | |||
117 | /** |
||
118 | * @param string $companyName |
||
119 | * @return $this |
||
120 | */ |
||
121 | public function setCompanyName($companyName) |
||
122 | { |
||
123 | $this->companyName = $companyName; |
||
124 | |||
125 | return $this; |
||
126 | } |
||
127 | |||
128 | /** |
||
129 | * @return string |
||
130 | */ |
||
131 | public function getCompanyPosition() |
||
132 | { |
||
133 | return $this->companyPosition; |
||
134 | } |
||
135 | |||
136 | /** |
||
137 | * @param string $companyPosition |
||
138 | * @return $this |
||
139 | */ |
||
140 | public function setCompanyPosition($companyPosition) |
||
141 | { |
||
142 | $this->companyPosition = $companyPosition; |
||
143 | |||
144 | return $this; |
||
145 | } |
||
146 | |||
147 | /** |
||
148 | * @return string |
||
149 | */ |
||
150 | public function getNote() |
||
151 | { |
||
152 | return $this->note; |
||
153 | } |
||
154 | |||
155 | /** |
||
156 | * @param string $note |
||
157 | * @return $this |
||
158 | */ |
||
159 | public function setNote($note) |
||
160 | { |
||
161 | $this->note = $note; |
||
162 | |||
163 | return $this; |
||
164 | } |
||
165 | |||
166 | /** |
||
167 | * @return int |
||
168 | */ |
||
169 | public function getLanguageId() |
||
170 | { |
||
171 | return $this->languageId; |
||
172 | } |
||
173 | |||
174 | /** |
||
175 | * @param int $languageId |
||
176 | * @return $this |
||
177 | */ |
||
178 | public function setLanguageId($languageId) |
||
179 | { |
||
180 | $this->languageId = $languageId; |
||
181 | |||
182 | return $this; |
||
183 | } |
||
184 | |||
185 | /** |
||
186 | * @return array |
||
187 | */ |
||
188 | public function getCustomFields() |
||
189 | { |
||
190 | return $this->customFields; |
||
191 | } |
||
192 | |||
193 | /** |
||
194 | * @param array $customFields |
||
195 | * @return $this |
||
196 | */ |
||
197 | public function setCustomFields($customFields) |
||
198 | { |
||
199 | $this->customFields = $customFields; |
||
200 | |||
201 | return $this; |
||
202 | } |
||
203 | } |
||
204 |
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.