1 | <?php |
||
34 | class _SERVER implements ArrayAccess, Iterator { |
||
35 | protected $_SERVER; |
||
36 | |||
37 | function __construct (array $SERVER) { |
||
65 | /** |
||
66 | * Whether key exists (from original `$_SERVER` superglobal) |
||
67 | * |
||
68 | * @param string $index |
||
69 | * |
||
70 | * @return bool |
||
71 | */ |
||
72 | function offsetExists ($index) { |
||
75 | /** |
||
76 | * Get key (from original `$_SERVER` superglobal) |
||
77 | * |
||
78 | * @param string $index |
||
79 | * |
||
80 | * @return mixed |
||
81 | */ |
||
82 | function offsetGet ($index) { |
||
85 | /** |
||
86 | * Set key (from original `$_SERVER` superglobal) |
||
87 | * |
||
88 | * @param string $index |
||
89 | * @param mixed $value |
||
90 | */ |
||
91 | function offsetSet ($index, $value) { |
||
94 | /** |
||
95 | * Unset key (from original `$_SERVER` superglobal) |
||
96 | * |
||
97 | * @param string $index |
||
98 | */ |
||
99 | public function offsetUnset ($index) { |
||
102 | /** |
||
103 | * Get current (from original `$_SERVER` superglobal) |
||
104 | * |
||
105 | * @return mixed Can return any type. |
||
106 | */ |
||
107 | public function current () { |
||
110 | /** |
||
111 | * Move forward to next element (from original `$_SERVER` superglobal) |
||
112 | */ |
||
113 | public function next () { |
||
116 | /** |
||
117 | * Return the key of the current element (from original `$_SERVER` superglobal) |
||
118 | * |
||
119 | * @return mixed scalar on success, or null on failure. |
||
120 | */ |
||
121 | public function key () { |
||
124 | /** |
||
125 | * Checks if current position is valid (from original `$_SERVER` superglobal) |
||
126 | * |
||
127 | * @return boolean The return value will be casted to boolean and then evaluated. |
||
128 | * Returns true on success or false on failure. |
||
129 | */ |
||
130 | public function valid () { |
||
133 | /** |
||
134 | * Rewind the Iterator to the first element (from original `$_SERVER` superglobal) |
||
135 | */ |
||
136 | public function rewind () { |
||
139 | } |
||
140 |