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 | namespace Chrl\AppBundle\Entity; |
||
4 | |||
5 | use Doctrine\ORM\Mapping as ORM; |
||
6 | |||
7 | /** |
||
8 | * Class User |
||
9 | * @package AppBundle\Entity |
||
10 | * |
||
11 | * @ORM\Entity |
||
12 | * @ORM\Table(name="user") |
||
13 | */ |
||
14 | class User |
||
15 | { |
||
16 | /** |
||
17 | * @return mixed |
||
18 | */ |
||
19 | public function getId() |
||
20 | { |
||
21 | return $this->id; |
||
22 | } |
||
23 | |||
24 | /** |
||
25 | * @param mixed $id |
||
26 | * @return User |
||
27 | */ |
||
28 | public function setId($id) |
||
29 | { |
||
30 | $this->id = $id; |
||
31 | return $this; |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * @return int |
||
36 | */ |
||
37 | public function getChatId() |
||
38 | { |
||
39 | return $this->chatId; |
||
40 | } |
||
41 | |||
42 | /** |
||
43 | * @param int $chatId |
||
44 | * @return User |
||
45 | */ |
||
46 | public function setChatId($chatId) |
||
47 | { |
||
48 | $this->chatId = $chatId; |
||
49 | return $this; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * @ORM\Id |
||
54 | * @ORM\Column(type="integer") |
||
55 | * @ORM\GeneratedValue(strategy="AUTO") |
||
56 | */ |
||
57 | protected $id; |
||
58 | |||
59 | /** |
||
60 | * @var integer |
||
61 | * |
||
62 | * @ORM\Column(name="chat_id", type="bigint", nullable=false) |
||
63 | */ |
||
64 | protected $chatId; |
||
65 | |||
66 | /** |
||
67 | * @ORM\Column(name="telegram_id", type="bigint") |
||
68 | */ |
||
69 | protected $tgId; |
||
70 | |||
71 | /** |
||
72 | * @return mixed |
||
73 | */ |
||
74 | public function getTgId() |
||
75 | { |
||
76 | return $this->tgId; |
||
77 | } |
||
78 | |||
79 | /** |
||
80 | * @param mixed $tgId |
||
81 | */ |
||
82 | public function setTgId($tgId) |
||
83 | { |
||
84 | $this->tgId = $tgId; |
||
85 | } |
||
86 | |||
87 | /** |
||
88 | * @return string |
||
89 | */ |
||
90 | public function getName() |
||
91 | { |
||
92 | return $this->name; |
||
93 | } |
||
94 | |||
95 | /** |
||
96 | * @param string $name |
||
97 | */ |
||
98 | public function setName($name) |
||
99 | { |
||
100 | $this->name = $name; |
||
101 | } |
||
102 | |||
103 | /** |
||
104 | * @return string |
||
105 | */ |
||
106 | public function getAlias() |
||
107 | { |
||
108 | return str_replace('_', '\_', $this->alias); |
||
109 | } |
||
110 | |||
111 | /** |
||
112 | * @param string $alias |
||
113 | */ |
||
114 | public function setAlias($alias) |
||
115 | { |
||
116 | $this->alias = $alias; |
||
117 | } |
||
118 | |||
119 | /** |
||
120 | * @return int |
||
121 | */ |
||
122 | public function getPoints() |
||
123 | { |
||
124 | return $this->points; |
||
125 | } |
||
126 | |||
127 | /** |
||
128 | * @param int $points |
||
129 | */ |
||
130 | public function setPoints($points) |
||
131 | { |
||
132 | $this->points = $points; |
||
133 | } |
||
134 | |||
135 | /** |
||
136 | * @return int |
||
137 | */ |
||
138 | public function getGame() |
||
139 | { |
||
140 | return $this->game; |
||
141 | } |
||
142 | |||
143 | /** |
||
144 | * @param Game $game |
||
145 | */ |
||
146 | public function setGame($game) |
||
147 | { |
||
148 | $this->game = $game; |
||
0 ignored issues
–
show
|
|||
149 | } |
||
150 | |||
151 | /** |
||
152 | * @var string |
||
153 | * |
||
154 | * @ORM\Column(name="name", type="text") |
||
155 | */ |
||
156 | protected $name; |
||
157 | |||
158 | /** |
||
159 | * @var string |
||
160 | * |
||
161 | * @ORM\Column(name="alias", type="string", nullable=true) |
||
162 | */ |
||
163 | protected $alias; |
||
164 | |||
165 | /** |
||
166 | * @var integer |
||
167 | * |
||
168 | * @ORM\Column(name="points", type="bigint") |
||
169 | */ |
||
170 | protected $points; |
||
171 | |||
172 | /** |
||
173 | * @var integer |
||
174 | * |
||
175 | * @ORM\ManyToOne(targetEntity="Chrl\AppBundle\Entity\Game", inversedBy="users") |
||
176 | */ |
||
177 | public $game; |
||
178 | /** |
||
179 | * @ORM\OneToMany(targetEntity="Chrl\AppBundle\Entity\Message", mappedBy="user") |
||
180 | */ |
||
181 | public $messages; |
||
182 | |||
183 | /** |
||
184 | * @ORM\Column(type="integer") |
||
185 | */ |
||
186 | public $fastestAnswer = 10000; |
||
187 | } |
||
188 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..