Mark V
1: <?php
2: namespace MOC\V\Core\GlobalsKernel\Vendor\Universal;
3:
4: /**
5: * Class Globals
6: *
7: * @package MOC\V\Core\GlobalsKernel\Vendor\Universal
8: */
9: class Globals
10: {
11:
12: /** @var array $GET */
13: private $GET;
14: /** @var array $POST */
15: private $POST;
16: /** @var array $SESSION */
17: private $SESSION;
18: /** @var array $SERVER */
19: private $SERVER;
20:
21: /**
22: * @param array $GET
23: * @param array $POST
24: * @param array $SESSION
25: * @param array $SERVER
26: */
27: public function __construct($GET, $POST, $SESSION, $SERVER)
28: {
29:
30: $this->GET = $GET;
31: $this->POST = $POST;
32: $this->SESSION = $SESSION;
33: $this->SERVER = $SERVER;
34: }
35:
36: /**
37: * @return array
38: */
39: public function getGET()
40: {
41:
42: return $this->GET;
43: }
44:
45: /**
46: * @param array $GET
47: *
48: * @return Globals
49: */
50: public function setGET($GET)
51: {
52:
53: $this->GET = $GET;
54: $_GET = $this->GET;
55: return $this;
56: }
57:
58: /**
59: * @return array
60: */
61: public function getPOST()
62: {
63:
64: return $this->POST;
65: }
66:
67: /**
68: * @param array $POST
69: *
70: * @return Globals
71: */
72: public function setPOST($POST)
73: {
74:
75: $this->POST = $POST;
76: $_POST = $this->POST;
77: return $this;
78: }
79:
80: /**
81: * @return array
82: */
83: public function getSESSION()
84: {
85:
86: return $this->SESSION;
87: }
88:
89: /**
90: * @param array $SESSION
91: *
92: * @return Globals
93: */
94: public function setSESSION($SESSION)
95: {
96:
97: $this->SESSION = $SESSION;
98: $_SESSION = $this->SESSION;
99: return $this;
100: }
101:
102: /**
103: * @return array
104: */
105: public function getSERVER()
106: {
107:
108: return $this->SERVER;
109: }
110:
111: /**
112: * @param array $SERVER
113: *
114: * @return Globals
115: */
116: public function setSERVER($SERVER)
117: {
118:
119: $this->SERVER = $SERVER;
120: $_SERVER = $this->SERVER;
121: return $this;
122: }
123: }
124: