| Total Complexity | 4 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | class FakeGlobalStateProvider extends GlobalStateProvider implements IGlobalStateProvider |
||
| 20 | { |
||
| 21 | var $server = array(); |
||
|
|
|||
| 22 | var $get = array(); |
||
| 23 | var $post = array(); |
||
| 24 | var $session = array(); |
||
| 25 | |||
| 26 | public function &getServerSuperGlobal() |
||
| 29 | } |
||
| 30 | |||
| 31 | public function &getGetSuperGlobal() |
||
| 32 | { |
||
| 33 | return $this->get; |
||
| 34 | } |
||
| 35 | |||
| 36 | public function &getPostSuperGlobal() |
||
| 37 | { |
||
| 38 | return $this->post; |
||
| 39 | } |
||
| 40 | |||
| 41 | public function &getSessionSuperGlobal() |
||
| 44 | } |
||
| 45 | } |
||
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.