Why the variables $request
, $files
and $query
are defined as public
? Why they were not defined private
or protected
?
Request class: what is the porpouse for defining $request, $files, $query, etc, as public variables?
Asked
Active
Viewed 38 times
0

tirenweb
- 30,963
- 73
- 183
- 303
-
Why should they be private or protected after you ? – BENARD Patrick Jan 12 '16 at 14:08
-
2Why should be private/protected? All that stuff is accessible from php globals as well. – malcolm Jan 12 '16 at 14:09