Completed
Push — psr2 ( b196d8...ccc4c7 )
by Andreas
05:58 queued 03:07
created

Get::set()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 2
dl 0
loc 5
rs 10
c 0
b 0
f 0
1
<?php
2
3
namespace dokuwiki\Input;
4
5
/**
6
 * Internal class used for $_GET access in dokuwiki\Input\Input class
7
 */
8
class Get extends Input
9
{
10
    /** @noinspection PhpMissingParentConstructorInspection
11
     * Initialize the $access array, remove subclass members
12
     */
13
    public function __construct()
14
    {
15
        $this->access = &$_GET;
16
    }
17
18
    /**
19
     * Sets a parameter in $_GET and $_REQUEST
20
     *
21
     * @param string $name Parameter name
22
     * @param mixed $value Value to set
23
     */
24
    public function set($name, $value)
25
    {
26
        parent::set($name, $value);
27
        $_REQUEST[$name] = $value;
28
    }
29
}
30