GlobalStateProvider::getCookieSuperGlobal()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
ccs 0
cts 1
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 2
1
<?php
2
/******************************************************************************
3
 * Wikipedia Account Creation Assistance tool                                 *
4
 * ACC Development Team. Please see team.json for a list of contributors.     *
5
 *                                                                            *
6
 * This is free and unencumbered software released into the public domain.    *
7
 * Please see LICENSE.md for the full licencing statement.                    *
8
 ******************************************************************************/
9
10
namespace Waca\Providers\GlobalState;
11
12
/**
13
 * Class GlobalStateProvider
14
 *
15
 * DO NOT USE THIS CLASS.
16
 * (Unless your name is <something>Test or WebRequest).
17
 *
18
 * @package Waca\Providers
19
 */
20
class GlobalStateProvider implements IGlobalStateProvider
21
{
22
    /**
23
     * @return array
24
     */
25
    public function &getServerSuperGlobal()
26
    {
27
        return $_SERVER;
28
    }
29
30
    /**
31
     * @return array
32
     */
33
    public function &getGetSuperGlobal()
34
    {
35
        return $_GET;
36
    }
37
38
    /**
39
     * @return array
40
     */
41
    public function &getPostSuperGlobal()
42
    {
43
        return $_POST;
44
    }
45
46
    /**
47
     * @return array
48
     */
49
    public function &getSessionSuperGlobal()
50
    {
51
        return $_SESSION;
52
    }
53
54
    /**
55
     * @return array
56
     */
57
    public function &getCookieSuperGlobal()
58
    {
59
        return $_COOKIE;
60
    }
61
}